public void LoadRig(SqlDataReader r, int playerId) { this.Id = Convert.ToInt32(r["id"]); int moduleTypeId = Convert.ToInt32(r["module_type_id"]); this.ModuleType = ShipModuleType.ModuleById(moduleTypeId); if (playerId > 0) { team = new RigSlotOfficerTeam(Convert.ToString(r["officer_ids"]), playerId); } else { team = new RigSlotOfficerTeam(); } team.SlotType = Slot.SlotType; int moduleId = (int)r["module_id"]; if (moduleId > 0) { Module = new ShipModule(moduleId); } }
public void ClearSlot() { team = new RigSlotOfficerTeam(); ModuleType = null; }
public UnityRigSlot(ShipModelSlot modelSlot) { team = new RigSlotOfficerTeam(); team.SlotType = modelSlot.SlotType; this.Slot = modelSlot; }
public UnityRigSlot() { team = new RigSlotOfficerTeam(); }