summaryrefslogtreecommitdiffstats
path: root/src/control
diff options
context:
space:
mode:
Diffstat (limited to 'src/control')
-rw-r--r--src/control/MapContext.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/control/MapContext.ts b/src/control/MapContext.ts
index ce82c5a..48e8b9e 100644
--- a/src/control/MapContext.ts
+++ b/src/control/MapContext.ts
@@ -15,7 +15,7 @@ import MapView from '../view/MapView';
export default class MapContext {
view: MapView;
- entities: {[key: string]: EntityPosition} = {};
+ entities: EntityPosition[] = [];
playerEntity: EntityPosition;
@@ -42,7 +42,7 @@ export default class MapContext {
}
private addEntity(entity: EntityPosition) {
- this.entities[entity.position.asString()] = entity;
+ this.entities.push(entity);
}
private addTransition(entity: EntityPosition, dest: Position, start: number, dur: number) {