summaryrefslogtreecommitdiffstats
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/MapData.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/model/MapData.ts b/src/model/MapData.ts
index dcb98b8..c8db35c 100644
--- a/src/model/MapData.ts
+++ b/src/model/MapData.ts
@@ -1,18 +1,18 @@
import {mapFromObject} from '../util';
interface Input {
- tiles: {[key: string]: string};
- collision: string[];
- layers: string[][][];
+ readonly tiles: {[key: string]: string};
+ readonly collision: string[];
+ readonly layers: string[][][];
}
export default class MapData {
- public tiles: Map<string, string>;
- public collision: string[];
- public layers: string[][][];
+ public readonly tiles: Map<string, string>;
+ public readonly collision: string[];
+ public readonly layers: string[][][];
- public width: number;
- public height: number;
+ public readonly width: number;
+ public readonly height: number;
constructor(data: Input) {
this.tiles = mapFromObject(data.tiles);