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
+5 -5
View File
@@ -23,11 +23,11 @@ namespace gameBase {
string table = "mappings";
for(int i = firstMapping; i < firstMapping + numMappings; i++){
Index idIndex = Index(to_string(i + 1), false);
int bind = luaManager->getIntFromTable(table, vector<Index>{idIndex, Index("bind", true)});
Mapping::BindType type = (Mapping::BindType)luaManager->getIntFromTable(table, vector<Index>{idIndex, Index("bindType", true)});
bool action = luaManager->getBoolFromTable(table, vector<Index>{idIndex, Index("action", true)});
int trigger = luaManager->getIntFromTable(table, vector<Index>{idIndex, Index("trigger", true)});
Index idIndex = Index(i + 1);
int bind = luaManager->getIntFromTable(table, vector<Index>{idIndex, Index("bind")});
Mapping::BindType type = (Mapping::BindType)luaManager->getIntFromTable(table, vector<Index>{idIndex, Index("bindType")});
bool action = luaManager->getBoolFromTable(table, vector<Index>{idIndex, Index("action")});
int trigger = luaManager->getIntFromTable(table, vector<Index>{idIndex, Index("trigger")});
Mapping *m = new Mapping;
m->bind = bind;