diff options
| author | Jonas Ask | 2009-11-15 23:31:22 +0000 |
|---|---|---|
| committer | Jonas Ask | 2009-11-15 23:31:22 +0000 |
| commit | acb9230193de17bc70c9ff47c905f286282ce06d (patch) | |
| tree | 0103b53682074f2046e5ef6de20f8e37c72401fd /GroundMaterialConfiguration.cpp | |
| parent | 109100e9547848912a24a361535b48986294ae3b (diff) | |
| download | stonesense-acb9230193de17bc70c9ff47c905f286282ce06d.tar.gz stonesense-acb9230193de17bc70c9ff47c905f286282ce06d.tar.bz2 stonesense-acb9230193de17bc70c9ff47c905f286282ce06d.tar.xz | |
Temporary check in of floor and wall config. Switching workstations.
Diffstat (limited to 'GroundMaterialConfiguration.cpp')
| -rw-r--r-- | GroundMaterialConfiguration.cpp | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/GroundMaterialConfiguration.cpp b/GroundMaterialConfiguration.cpp index d38c5b9..e59a0b5 100644 --- a/GroundMaterialConfiguration.cpp +++ b/GroundMaterialConfiguration.cpp @@ -63,11 +63,11 @@ void LoadGroundMaterialConfiguration( ){ TiXmlDocument doc( filename );
bool loadOkay = doc.LoadFile();
TiXmlHandle hDoc(&doc);
- TiXmlElement* elemMaterial;
+ TiXmlElement* elemFloor;
xmlDefinedGroundTypes.clear();
- elemMaterial = hDoc.FirstChildElement("Material").Element();
+ /*elemMaterial = hDoc.FirstChildElement("Material").Element();
while( elemMaterial ){
const char* name = elemMaterial->Attribute("gameID");
const char* wallSheetIndexStr = elemMaterial->Attribute("wallSheetIndex");
@@ -78,6 +78,28 @@ void LoadGroundMaterialConfiguration( ){ xmlDefinedGroundTypes.push_back( mat );
elemMaterial = elemMaterial->NextSiblingElement("Material");
+ }*/
+ elemFloor = hDoc.FirstChildElement("Floor").Element();
+ while( elemFloor ){
+ const char* spriteIndexstr = elemFloor->Attribute("spriteIndex");
+ TiXmlElement* elemGameID;
+ TiXmlElement* elemMaterial;
+
+ elemGameID = elemFloor->FirstChildElement("GameID");
+ while( elemGameID ){
+ const char* gameIDstr = elemGameID->Attribute("value");
+
+ elemGameID = elemGameID->NextSiblingElement("GameID");
+ }
+
+ elemMaterial = elemFloor->FirstChildElement("Material");
+ while( elemMaterial ){
+ const char* gameIDstr = elemMaterial->Attribute("name");
+
+ elemMaterial = elemMaterial->NextSiblingElement("Material");
+ }
+
+ elemFloor = elemFloor->NextSiblingElement("Floor");
}
GroundMaterialNamesTranslatedFromGame = false;
|
