mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
minor refactoring
This commit is contained in:
+6
-1
@@ -263,7 +263,12 @@ namespace battleship{
|
||||
void InGameAppState::loadModels(){
|
||||
LuaManager *lm = LuaManager::getSingleton();
|
||||
string pathBase = GameManager::getSingleton()->getPath() + "Scripts/";
|
||||
lm->buildScript(vector<string>{pathBase + "defPaths.lua", pathBase + "unitData.lua"});
|
||||
lm->buildScript(vector<string>{
|
||||
pathBase + "defPaths.lua",
|
||||
pathBase + "unitData.lua",
|
||||
pathBase + "vehicleData.lua",
|
||||
pathBase + "structureData.lua"
|
||||
});
|
||||
int numUnits = lm->getInt("numUnits");
|
||||
modelPaths.clear();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user