public Shipyard(ShipyardId id, Size specialtySize, ShipyardSkill skill) { _id = id; _specialtySize = specialtySize; _skill = skill; switch (Skill) { case ShipyardSkill.CrewQuarters: modCrew = ADJUST_SKILL_CREW; break; case ShipyardSkill.FuelBase: modFuel = ADJUST_SKILL_FUEL; break; case ShipyardSkill.HullPerUnit: modHull = ADJUST_SKILL_HULL; break; case ShipyardSkill.ShieldSlotUnits: modShield = ADJUST_SKILL_SHIELD; break; case ShipyardSkill.WeaponSlotUnits: modWeapon = ADJUST_SKILL_WEAPON; break; } }
public StarSystem(Hashtable hash) : base(hash) { _id = (StarSystemId)GetValueFromHash(hash, "_id", _id); _x = (int)GetValueFromHash(hash, "_x", _x); _y = (int)GetValueFromHash(hash, "_y", _y); _size = (Size)GetValueFromHash(hash, "_size", _size); _techLevel = (TechLevel)GetValueFromHash(hash, "_techLevel", _techLevel); _politicalSystemType = (PoliticalSystemType)GetValueFromHash(hash, "_politicalSystemType", _politicalSystemType); _systemPressure = (SystemPressure)GetValueFromHash(hash, "_systemPressure", _systemPressure); _specialResource = (SpecialResource)GetValueFromHash(hash, "_specialResource", _specialResource); _specialEventType = (SpecialEventType)GetValueFromHash(hash, "_specialEventType", _specialEventType); _tradeItems = (int[])GetValueFromHash(hash, "_tradeItems", _tradeItems); _countDown = (int)GetValueFromHash(hash, "_countDown", _countDown); _visited = (bool)GetValueFromHash(hash, "_visited", _visited); _shipyardId = (ShipyardId)GetValueFromHash(hash, "_shipyardId", _shipyardId); }
public Shipyard(ShipyardId id, Size specialtySize, ShipyardSkill skill) { Id = id; SpecialtySize = specialtySize; Skill = skill; switch (Skill) { case ShipyardSkill.CrewQuarters: modCrew = ADJUST_SKILL_CREW; break; case ShipyardSkill.FuelBase: modFuel = ADJUST_SKILL_FUEL; break; case ShipyardSkill.HullPerUnit: modHull = ADJUST_SKILL_HULL; break; case ShipyardSkill.ShieldSlotUnits: modShield = ADJUST_SKILL_SHIELD; break; case ShipyardSkill.WeaponSlotUnits: modWeapon = ADJUST_SKILL_WEAPON; break; } }