From f35c1e0ac65e4e82f2bd1905c817840da53fd0bd Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 11 Dec 2010 18:42:18 +0000 Subject: Fichier commenté et réorganisé MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2010-netlemmings/trunk@199 077b3477-7977-48bd-8428-443f22f7bfda --- src/include/data_ini.h | 32 +++++++++++++++++++------------- 1 file 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; -- cgit v1.2.3