mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
guiScreen is now an optional property
This commit is contained in:
@@ -141,7 +141,10 @@ namespace battleship{
|
||||
lineOfSight = unitTable["lineOfSight"]; lineOfSight += game->calcAbilFromTech(Ability::Type::LINE_OF_SIGHT, currTechs, (int)GameObject::type, id);
|
||||
unitClass = (UnitClass)unitTable["unitClass"];
|
||||
type = (UnitType)unitTable["unitType"];
|
||||
guiScreen = unitTable["guiScreen"];
|
||||
|
||||
string gsk = "guiScreen";
|
||||
sol::optional<string> nameOpt = unitTable[gsk];
|
||||
guiScreen = (nameOpt != sol::nullopt ? (string)unitTable[gsk] : "");
|
||||
|
||||
string tblName = "garrisonCapacity";
|
||||
sol::optional<sol::table> gc = unitTable[tblName];
|
||||
|
||||
Reference in New Issue
Block a user