-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProjectData.hx
56 lines (48 loc) · 1.14 KB
/
ProjectData.hx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import haxe.ds.Map;
class ValueData {
public var definition:String;
public var name:String;
public function new(definition:String, name:String) {
this.definition = definition;
this.name = name;
}
}
class EntityData {
public var eid:String;
public var originX:Int;
public var originY:Int;
public var values:Array<ValueData>;
public function new(eid:String, originX:Int, originY:Int, values:Array<ValueData>) {
this.eid = eid;
this.originX = originX;
this.originY = originY;
this.values = values;
}
}
class LayerData {
public var definition:String;
public var eid:String;
public var cellWidth:Int;
public var cellHeight:Int;
public function new(
definition:String,
eid:String,
cellWidth:Int,
cellHeight:Int
) {
this.definition = definition;
this.eid = eid;
this.cellWidth = cellWidth;
this.cellHeight = cellHeight;
}
}
class ProjectData {
public var values:Array<ValueData>;
public var layers:Map<String, LayerData>;
public var entities:Map<String, EntityData>;
public function new() {
values = new Array<ValueData>();
layers = new Map<String, LayerData>();
entities = new Map<String, EntityData>();
}
}