summaryrefslogtreecommitdiff
path: root/src/exporter.py
diff options
context:
space:
mode:
authorColin Noga <Tempus@chronometry.ca>2012-07-22 19:38:00 -0500
committerColin Noga <Tempus@chronometry.ca>2012-07-22 19:38:00 -0500
commitf1ff8070137eed75ff83a7c1728e9901eaaf2b67 (patch)
tree7d9f401b0631d40dae9096ad2855eadf9598ccba /src/exporter.py
parent14d01db86091a4cbe4ce31f15f1a5e95ae31025e (diff)
downloadkoopatlas-f1ff8070137eed75ff83a7c1728e9901eaaf2b67.tar.gz
koopatlas-f1ff8070137eed75ff83a7c1728e9901eaaf2b67.zip
added in new fields hasSecret, delay, delayOffset
Diffstat (limited to '')
-rw-r--r--src/exporter.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/exporter.py b/src/exporter.py
index ed377c3..e6ba38a 100644
--- a/src/exporter.py
+++ b/src/exporter.py
@@ -268,12 +268,12 @@ class KPMapExporter:
requiredFixUps.append((len(data) - 8, texture))
for anim in doodad.animations:
- rLoop, rCurve, rFrames, rType, rStart, rEnd = anim
+ rLoop, rCurve, rFrames, rType, rStart, rEnd, rDelay, rDelayOffset = anim
loopid = self.ANIM_LOOPS.index(rLoop)
curveid = self.ANIM_CURVES.index(rCurve)
typeid = self.ANIM_TYPES.index(rType)
- data += struct.pack('>iiiiiiii', loopid, curveid, rFrames, typeid, rStart, rEnd, 0, 0)
+ data += struct.pack('>iiiiiiiiii', loopid, curveid, rFrames, typeid, rStart, rEnd, rDelay, rDelayOffset, 0, 0)
elif isinstance(eLayer, self.PathLayerExporter):
data += u32.pack(2)
@@ -343,7 +343,7 @@ class KPMapExporter:
if node.isStop():
if node.level:
level1, level2 = node.level
- data += struct.pack('>ibbbb', 2, level1, level2, 0, 0)
+ data += struct.pack('>ibbibb', 2, level1, level2, 0, 0, 0)
elif node.mapChange:
data += u32.pack(3)