Esempio n. 1
0
    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);
        }
    }
Esempio n. 2
0
 public void ClearSlot()
 {
     team       = new RigSlotOfficerTeam();
     ModuleType = null;
 }
Esempio n. 3
0
 public UnityRigSlot(ShipModelSlot modelSlot)
 {
     team          = new RigSlotOfficerTeam();
     team.SlotType = modelSlot.SlotType;
     this.Slot     = modelSlot;
 }
Esempio n. 4
0
 public UnityRigSlot()
 {
     team = new RigSlotOfficerTeam();
 }