blob: b453172c8f68d160c4571ae549a33c33aa894a7d (
plain)
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
|
class KPLayer(object):
def __init__(self):
self.tileset = ''
self.size = (0,0)
self.objects = []
class KPNodeAction(object):
def __init__(self):
pass
class KPNode(object):
def __init__(self):
self.position = (0,0)
self.actions = []
class KPPathSegment(object):
def __init__(self):
self.start = None
self.end = None
self.animation = None # default
class KPPath(object):
def __init__(self):
self.startNode = None
self.endNode = None
self.segments = []
class KPDoodad(object):
def __init__(self):
self.position = (0,0)
self.angle = 0
self.scale = (0,0)
class KPMap(object):
def __init__(self):
self.layers = []
self.nodes = []
self.paths = []
self.doodads = []
self.nextLayerNumber = 1
|