From 549e682e0f8b3c0b758c2aaf1ae66c5ca9128f5b Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 3 Nov 2011 04:28:08 +0100 Subject: added mapdata.py --- src/mapdata.py | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 src/mapdata.py 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 = [] + -- cgit v1.2.3