- added the beginning work to support translatable techtrees

This commit is contained in:
Mark Vejvoda
2012-05-02 20:46:47 +00:00
parent 5c0db25c86
commit 897346d1f5
21 changed files with 141 additions and 47 deletions

View File

@@ -416,6 +416,15 @@ const string Properties::getString(const string &key, const char *defaultValueIf
}
}
bool Properties::hasString(const string &key) const {
PropertyMap::const_iterator it;
it= propertyMap.find(key);
if(it == propertyMap.end()) {
return false;
}
return true;
}
void Properties::setInt(const string &key, int value){
setString(key, intToStr(value));
}