summaryrefslogtreecommitdiff
path: root/src/mapdata.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mapdata.py46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/mapdata.py b/src/mapdata.py
new file mode 100644
index 0000000..8ecb33c
--- /dev/null
+++ b/src/mapdata.py
@@ -0,0 +1,46 @@
+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.start_node = None
+ self.end_node = 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 = []
+