diff options
| author | Japa | 2010-04-09 14:12:29 +0000 |
|---|---|---|
| committer | Japa | 2010-04-09 14:12:29 +0000 |
| commit | 81aefc8e03ff3f647494012e18bcdc8f33f4de42 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /ContentLoader.h | |
| parent | c3d0b7d6778af46299901d959d589d6599afa21c (diff) | |
| download | stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.gz stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.bz2 stonesense-81aefc8e03ff3f647494012e18bcdc8f33f4de42.tar.xz | |
There is no trunk
it is not the code that compiles, it is you.
Diffstat (limited to 'ContentLoader.h')
| -rw-r--r-- | ContentLoader.h | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/ContentLoader.h b/ContentLoader.h deleted file mode 100644 index 1834ed0..0000000 --- a/ContentLoader.h +++ /dev/null @@ -1,53 +0,0 @@ -#pragma once
-#include "dfhack/library/tinyxml/tinyxml.h"
-#include "BuildingConfiguration.h"
-#include "CreatureConfiguration.h"
-#include "VegetationConfiguration.h"
-#include "GroundMaterialConfiguration.h"
-
-class ContentLoader{
-private:
- bool parseContentIndexFile( char* filepath );
- bool parseContentXMLFile( char* filepath );
- bool parseBuildingContent( TiXmlElement* elemRoot );
- bool parseCreatureContent( TiXmlElement* elemRoot );
- bool parseTerrainContent ( TiXmlElement* elemRoot );
- bool parseTreeContent( TiXmlElement* elemRoot );
- bool parseShrubContent( TiXmlElement* elemRoot );
- void flushCreatureConfig();
-
- bool translationComplete;
-public:
- ContentLoader(void);
- ~ContentLoader(void);
-
- bool Load(API& DF);
-
- vector<BuildingConfiguration> buildingConfigs;
- vector<vector<CreatureConfiguration>*> creatureConfigs;
- vector<VegetationConfiguration> treeConfigs;
- vector<VegetationConfiguration> shrubConfigs;
- vector<TerrainConfiguration*> terrainFloorConfigs;
- vector<TerrainConfiguration*> terrainBlockConfigs;
-
- vector<t_matgloss> creatureNameStrings;
- vector<t_matgloss> stoneNameStrings;
- vector<t_matgloss> woodNameStrings;
- vector<t_matgloss> metalNameStrings;
- vector<t_matgloss> plantNameStrings;
- vector<string> buildingNameStrings;
-};
-
-//singleton instance
-extern ContentLoader contentLoader;
-
-extern const char* getDocument(TiXmlNode* element);
-extern void contentError(const char* message, TiXmlNode* element);
-extern char getAnimFrames(const char* framestring);
-extern int loadConfigImgFile(const char* filename, TiXmlElement* referrer);
-int lookupMaterialType(const char* strValue);
-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);
-
|
