diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2010-12-11 18:42:18 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2010-12-11 18:42:18 +0000 |
commit | f35c1e0ac65e4e82f2bd1905c817840da53fd0bd (patch) | |
tree | 761da5c0f02fd4030231b2e4022cb53e32ce55d6 | |
parent | a9d01856a5a5caa5a0b34ec8bfc84441cfd277e8 (diff) | |
download | 2010-netlemmings-f35c1e0ac65e4e82f2bd1905c817840da53fd0bd.tar.gz 2010-netlemmings-f35c1e0ac65e4e82f2bd1905c817840da53fd0bd.tar.bz2 2010-netlemmings-f35c1e0ac65e4e82f2bd1905c817840da53fd0bd.zip |
Fichier commenté et réorganisé
git-svn-id: file:///var/svn/2010-netlemmings/trunk@199 077b3477-7977-48bd-8428-443f22f7bfda
-rw-r--r-- | src/include/data_ini.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/src/include/data_ini.h b/src/include/data_ini.h index bec4d48..bf0920e 100644 --- a/src/include/data_ini.h +++ b/src/include/data_ini.h @@ -7,20 +7,8 @@ #include "SDL/SDL_stdinc.h" -// object_* = entries from level ini files -struct styleObjects { - int frames, anim, type, sound; -}; - -// Various keys at the beginning of level ini files -struct styleIni { - char *name; - uint32_t bgColor, debrisColor; - int tiles, particleColorCount, objectCount; - uint32_t *particleColor; - struct styleObjects *objects; -}; +//////////////////////// LEVEL INI FILES //////////////////////// struct skills { int releaseRate, numLemmings, numToRescue, timeLimit; int numClimbers, numFloaters, numBlockers, numBombers, numBuilders, numBashers, numMiners, numDiggers; @@ -43,11 +31,29 @@ struct levelIni { struct levelItem *objects, *terrains, *steels; }; + +//////////////////////// LEVELPACK INI FILES //////////////////////// struct levelPackIni { int maxFallDistance; char *codeSeed; }; +//////////////////////// STYLE INI FILES //////////////////////// +// frames_, amin_, type_ sound_ quadruplet entries from style ini files +struct styleObjects { + int frames, anim, type, sound; +}; + +// Various keys at the beginning of style ini files +struct styleIni { + char *name; + uint32_t bgColor, debrisColor; + int tiles, particleColorCount, objectCount; + uint32_t *particleColor; + struct styleObjects *objects; +}; + +//////////////////////// GLOBAL INI FILES //////////////////////// typedef struct { struct styleIni style; struct levelIni level; |