removed string bool argument from Index constructor

This commit is contained in:
devZoGok
2022-09-24 09:45:01 +03:00
parent 56cd618b46
commit a5dea4c5bd
2 changed files with 17 additions and 7 deletions
+12 -2
View File
@@ -15,9 +15,19 @@ namespace gameBase{
std::string index;
bool string;
Index(std::string index, bool string){
Index(std::string index){
this->index = index;
this->string = string;
this->string = true;
}
Index(int index){
this->index = std::to_string(index);
this->string = false;
}
Index(float index){
this->index = std::to_string(index);
this->string = false;
}
};