summaryrefslogtreecommitdiff
path: root/src/koopatlas/mapdata.h
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-07-24 15:55:13 +0200
committerTreeki <treeki@gmail.com>2012-07-24 15:55:13 +0200
commit57577aa4c163b01572b21914defe34e7ee24104b (patch)
tree290d0c97cb6344bd5e21d8c5f6e0c4afb10a76e7 /src/koopatlas/mapdata.h
parent86cef888c196c138f71388aa9b701ac09eb95d14 (diff)
downloadkamek-57577aa4c163b01572b21914defe34e7ee24104b.tar.gz
kamek-57577aa4c163b01572b21914defe34e7ee24104b.zip
parts of the new unlock system, still got to wrap up some stuff
Diffstat (limited to '')
-rw-r--r--src/koopatlas/mapdata.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/koopatlas/mapdata.h b/src/koopatlas/mapdata.h
index 18dd9ee..b9a32f3 100644
--- a/src/koopatlas/mapdata.h
+++ b/src/koopatlas/mapdata.h
@@ -95,12 +95,18 @@ struct dKPNode_s {
};
struct dKPPath_s {
+ enum Availability {
+ NOT_AVAILABLE = 0,
+ AVAILABLE = 1,
+ NEWLY_AVAILABLE = 2
+ };
+
dKPNode_s *start, *end;
dKPLayer_s *tileLayer, *doodadLayer;
u8 unlockType; // 0 = always, 1 = normal, 2 = secret
u8 unlockLevelNumber[2];
- bool isAvailable; // computed on-the-fly - default from Koopatlas is true
+ u8 isAvailable; // computed on-the-fly - default from Koopatlas is 1
float speed;
int animation;
};
@@ -164,6 +170,8 @@ struct dKPMapFile_s {
int tilesetCount;
GXTexObj *tilesets;
+ u8 *unlockData;
+
dKPLayer_s::sector_s sectors[1]; // variable size
};