summaryrefslogtreecommitdiff
path: root/ContentLoader.h
diff options
context:
space:
mode:
authorKris Parker2009-12-24 11:46:05 +0000
committerKris Parker2009-12-24 11:46:05 +0000
commita604cf12cd604df8e75a1e674856e6bf61dc433b (patch)
tree4b6ddc504cb8c6ae39db23bc3bec48c9b99fa49a /ContentLoader.h
parent9d50ee36dc34d251994dfe68a29f0174f4573928 (diff)
downloadstonesense-a604cf12cd604df8e75a1e674856e6bf61dc433b.tar.gz
stonesense-a604cf12cd604df8e75a1e674856e6bf61dc433b.tar.bz2
stonesense-a604cf12cd604df8e75a1e674856e6bf61dc433b.tar.xz
Make the creature config storage a vector of vectors, so creature type can be found via lookup rather than search
Diffstat (limited to 'ContentLoader.h')
-rw-r--r--ContentLoader.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ContentLoader.h b/ContentLoader.h
index 678be8a..1834ed0 100644
--- a/ContentLoader.h
+++ b/ContentLoader.h
@@ -14,6 +14,7 @@ private:
bool parseTerrainContent ( TiXmlElement* elemRoot );
bool parseTreeContent( TiXmlElement* elemRoot );
bool parseShrubContent( TiXmlElement* elemRoot );
+ void flushCreatureConfig();
bool translationComplete;
public:
@@ -23,7 +24,7 @@ public:
bool Load(API& DF);
vector<BuildingConfiguration> buildingConfigs;
- vector<CreatureConfiguration> creatureConfigs;
+ vector<vector<CreatureConfiguration>*> creatureConfigs;
vector<VegetationConfiguration> treeConfigs;
vector<VegetationConfiguration> shrubConfigs;
vector<TerrainConfiguration*> terrainFloorConfigs;
@@ -49,3 +50,4 @@ int lookupMaterialIndex(int matType, const char* strValue);
int lookupIndexedType(const char* indexName, vector<t_matgloss>& typeVector);
const char *lookupMaterialTypeName(int matType);
const char *lookupMaterialName(int matType,int matIndex);
+