summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-11-03 04:28:08 +0100
committerTreeki <treeki@gmail.com>2011-11-03 04:28:08 +0100
commit549e682e0f8b3c0b758c2aaf1ae66c5ca9128f5b (patch)
treee252096360759ccf9fded30e0db08fa8b93261a2
parentce3988684c2dbf470976399f1b895aca35461695 (diff)
downloadkoopatlas-549e682e0f8b3c0b758c2aaf1ae66c5ca9128f5b.tar.gz
koopatlas-549e682e0f8b3c0b758c2aaf1ae66c5ca9128f5b.zip
added mapdata.py
-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 = []
+