refactored unit, projectile and resource deposit data scripts with coresponding namespaces

This commit is contained in:
devZoGok
2023-10-07 16:36:37 +03:00
parent cf9ac6199e
commit 3696158e78
22 changed files with 648 additions and 596 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ namespace battleship{
Unit* GameObjectFactory::createUnit(Player *player, int id, Vector3 pos, Quaternion rot){
sol::state_view SOL_LUA_STATE = generateView();
int unitClass = SOL_LUA_STATE["unitClass"][id + 1];
int unitClass = SOL_LUA_STATE["units"]["unitClass"][id + 1];
switch((UnitClass)unitClass){
case UnitClass::ENGINEER: