mirror of
https://github.com/ApfelTeeSaft/PlanetFleet.git
synced 2026-08-26 19:33:38 +00:00
refactored unit, projectile and resource deposit data scripts with coresponding namespaces
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user