diff options
| author | Petr Mrázek | 2012-02-19 10:43:12 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-19 10:43:12 +0100 |
| commit | 7c346109c5b370a226a46585cfa2e461b0d100d0 (patch) | |
| tree | 2eeff170b0b7e8ca7f944955730ee92bdc2a7261 /BuildingConfiguration.cpp | |
| parent | d219e323689a7ea5d387346b906241f2e999df1e (diff) | |
| download | stonesense-7c346109c5b370a226a46585cfa2e461b0d100d0.tar.gz stonesense-7c346109c5b370a226a46585cfa2e461b0d100d0.tar.bz2 stonesense-7c346109c5b370a226a46585cfa2e461b0d100d0.tar.xz | |
Break everything forever.
Diffstat (limited to 'BuildingConfiguration.cpp')
| -rw-r--r-- | BuildingConfiguration.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/BuildingConfiguration.cpp b/BuildingConfiguration.cpp index f0ad4c8..3ba5d8e 100644 --- a/BuildingConfiguration.cpp +++ b/BuildingConfiguration.cpp @@ -5,10 +5,13 @@ bool BuildingNamesTranslatedFromGame = false;
-BuildingConfiguration::BuildingConfiguration(string name, int gameID)
+BuildingConfiguration::BuildingConfiguration(string name, int game_type, int game_subtype, std::string str_custom)
{
this->name = name;
- this->gameID = gameID;
+ this->game_type = game_type;
+ this->game_subtype = game_subtype;
+ this->game_custom = -1;
+ this->str_custom = str_custom;
this->width = this->height = 1;
this->canBeFloating = false;
this->canBeAnySize = false;
@@ -22,7 +25,10 @@ BuildingConfiguration::BuildingConfiguration(string name, int gameID) BuildingConfiguration::BuildingConfiguration()
{
this->name = "";
- this->gameID = BUILDINGTYPE_NA;
+ this->game_type = -1;
+ this->game_subtype = -1;
+ this->game_custom = -1;
+ this->str_custom = str_custom;
this->width = this->height = 1;
this->canBeFloating = false;
this->canBeAnySize = false;
@@ -40,12 +46,14 @@ BuildingConfiguration::~BuildingConfiguration(void) void DumpBuildingNamesToDisk(){
+ /*
FILE* fp = fopen("buildingdump.txt", "w");
if(!fp) return;
for(uint32_t j=0; j < contentLoader->classIdStrings.size(); j++){
fprintf(fp, "%i:%s\n",j, contentLoader->classIdStrings[j].c_str());
}
fclose(fp);
+ */
}
/*void TranslateBuildingNames( vector<BuildingConfiguration>& configs, vector<string>& buildingNames ){
|
