Пример #1
0
 override public void AddToTable(ShipTable table)
 {
     table.ship["LENR"]["mount_MAX"].IntValue     = mount_MAX;
     table.ship["LENR"]["total_ALLOWED"].IntValue = total_ALLOWED;
     table.ship["LENR"]["sys1_EB"].IntValue       = sys1_EB;
     table.ship["LENR"]["sys1_quad"].IntValue     = sys1_quad;
 }
Пример #2
0
 public LENR(ShipTable table)
 {
     mount_MAX     = table.ship["LENR"]["mount_MAX"].IntValue;
     total_ALLOWED = table.ship["LENR"]["total_ALLOWED"].IntValue;
     sys1_EB       = table.ship["LENR"]["sys1_EB"].IntValue;
     sys1_quad     = table.ship["LENR"]["sys1_quad"].IntValue;
 }
Пример #3
0
 public RMS(ShipTable table)
 {
     hardmounted_TOTAL = table.ship["RMS"]["hardmounted_TOTAL"].IntValue;
     sys1_JOINTtotal   = table.ship["RMS"]["sys1_JOINTtotal"].IntValue;
     sys1_EB           = table.ship["RMS"]["sys1_EB"].IntValue;
     sys1_quad         = table.ship["RMS"]["sys1_quad"].IntValue;
 }
Пример #4
0
 override public void AddToTable(ShipTable table)
 {
     table.ship["RMS"]["hardmounted_TOTAL"].IntValue = hardmounted_TOTAL;
     table.ship["RMS"]["sys1_JOINTtotal"].IntValue   = sys1_JOINTtotal;
     table.ship["RMS"]["sys1_EB"].IntValue           = sys1_EB;
     table.ship["RMS"]["sys1_quad"].IntValue         = sys1_quad;
 }
Пример #5
0
 public override void AddToTable(ShipTable table)
 {
     table.shipCameras["Total"].Value = cameras.Count;
     for (int i = 0; i < cameras.Count; i++)
     {
         table.shipCameras["Camera" + (i + 1)] = cameras.ElementAt(i).ToTable();
     }
 }
Пример #6
0
 public COMM(ShipTable table)
 {
     mount_MAX = table.ship["COMM"]["mount_MAX"].IntValue;
     sys1_EB   = table.ship["COMM"]["sys1_EB"].IntValue;
     sys1_quad = table.ship["COMM"]["sys1_quad"].IntValue;
     sys2_EB   = table.ship["COMM"]["sys2_EB"].IntValue;
     sys2_quad = table.ship["COMM"]["sys2_quad"].IntValue;
 }
Пример #7
0
 override public void AddToTable(ShipTable table)
 {
     table.ship["COMM"]["mount_MAX"].IntValue = mount_MAX;
     table.ship["COMM"]["sys1_EB"].IntValue   = sys1_EB;
     table.ship["COMM"]["sys1_quad"].IntValue = sys1_quad;
     table.ship["COMM"]["sys2_EB"].IntValue   = sys2_EB;
     table.ship["COMM"]["sys2_quad"].IntValue = sys2_quad;
 }
Пример #8
0
 public CSSM(ShipTable table)
 {
     mount_MAX          = table.ship["CSSM"]["mount_MAX"].IntValue;
     sys_EB             = table.ship["CSSM"]["sys_EB"].IntValue;
     sys_quad           = table.ship["CSSM"]["sys_quad"].IntValue;
     cargo_BAYS         = table.ship["CSSM"]["cargo_BAYS"].IntValue;
     cargo_RADSattached = table.ship["CSSM"]["cargo_RADSattached"].IntValue;
 }
Пример #9
0
 override public void AddToTable(ShipTable table)
 {
     table.ship["CSSM"]["mount_MAX"].IntValue          = mount_MAX;
     table.ship["CSSM"]["sys_EB"].IntValue             = sys_EB;
     table.ship["CSSM"]["sys_quad"].IntValue           = sys_quad;
     table.ship["CSSM"]["cargo_BAYS"].IntValue         = cargo_BAYS;
     table.ship["CSSM"]["cargo_RADSattached"].IntValue = cargo_RADSattached;
 }
Пример #10
0
        override public void AddToTable(ShipTable table)
        {
            int i = 1;

            foreach (RCS thruster in rcs)
            {
                table.shipCoords["Thruster" + i] = thruster.ToTable();
                i++;
            }
        }
Пример #11
0
        public CameraManager(ShipTable table)
        {
            cameras = new BindingList <Camera>();
            int i = 1;

            while (table.shipCameras["Camera" + i].Count > 0)
            {
                cameras.Add(new Camera(table.shipCameras["Camera" + i]));
                i++;
            }
        }
Пример #12
0
        public RCSSystem(ShipTable table)
        {
            rcs = new BindingList <RCS>();
            int i = 1;

            while (table.shipCoords["Thruster" + i].Count > 0)
            {
                rcs.Add(new RCS(table.shipCoords["Thruster" + i]));
                i++;
            }
        }
Пример #13
0
        override public void AddToTable(ShipTable ship)
        {
            ship.ship["MES"]["mount_MAX"].IntValue     = mount_MAX;
            ship.ship["MES"]["total_ALLOWED"].IntValue = total_ALLOWED;
            ship.ship["MES"]["sys1_EB"].IntValue       = sys1_EB;
            ship.ship["MES"]["sys1_quad"].IntValue     = sys1_quad;

            int i = 1;

            foreach (MESEngine mesEngine in engines)
            {
                ship.shipCoords["MES" + i] = mesEngine.ToTable();
                i++;
            }
        }
Пример #14
0
        public MTS(ShipTable table)
        {
            mount_MAX   = table.ship["MTS"]["mount_MAX"].IntValue;
            nozzle_SIZE = table.ship["MTS"]["nozzle_SIZE"].Value;
            controller  = new MTSController(table.ship["MTS"]["Controller1_LOC"]);

            MTSlocation = new Vector3(table.shipCoords["MTSlocation"]);
            int i = 1;

            while (table.shipCoords["booster" + i].Count > 0)
            {
                booster.Add(new MTSBooster(table.shipCoords["booster" + i]));
                i++;
            }
        }
Пример #15
0
        override public void AddToTable(ShipTable table)
        {
            table.ship["MTS"]["mount_MAX"].IntValue = mount_MAX;
            table.ship["MTS"]["nozzle_SIZE"].Value  = nozzle_SIZE;
            table.ship["MTS"]["Controller1_LOC"]    = controller.ToTable();

            table.shipCoords["MTSlocation"]          = MTSlocation.ToTable();
            table.shipCoords["noz_BOOSTtotal"].Value = booster.Count;
            int i = 1;

            foreach (MTSBooster mtsBooster in booster)
            {
                table.shipCoords["booster" + i] = mtsBooster.ToTable();
                i++;
            }
        }
Пример #16
0
        public MES(ShipTable ship)
        {
            engines       = new BindingList <MESEngine>();
            mount_MAX     = ship.ship["MES"]["mount_MAX"].IntValue;
            total_ALLOWED = ship.ship["MES"]["total_ALLOWED"].IntValue;
            sys1_EB       = ship.ship["MES"]["sys1_EB"].IntValue;
            sys1_quad     = ship.ship["MES"]["sys1_quad"].IntValue;

            int i = 1;

            while (ship.shipCoords["MES" + i].Count > 0)
            {
                engines.Add(new MESEngine(ship.shipCoords["MES" + i]));
                i++;
            }
        }
Пример #17
0
        override public void AddToTable(ShipTable table)
        {
            table.ship["ECS_PWRpercent"].Value  = ECS_PWRpercent;
            table.ship["ECS_MASSpercent"].Value = ECS_MASSpercent;
            table.ship["ECS_SYStotal"].IntValue = ECS_SYStotal;
            table.ship["ECS_SYSAMPSmax"].Value  = ECS_SYSAMPSmax;
            table.ship["ECS_HVtotal"].IntValue  = ECS_HVtotal;
            table.ship["ECS_HVAMPSmax"].Value   = ECS_HVAMPSmax;
            table.ship["ECS_WPNtotal"].IntValue = ECS_WPNtotal;
            table.ship["ECS_WPNAMPSmax"].Value  = ECS_WPNAMPSmax;
            table.ship["ECS_RSRVAMPSmax"].Value = ECS_RSRVAMPSmax;
            table.ship["ECS_EMRGAMPSmax"].Value = ECS_EMRGAMPSmax;

            table.ship["ECS"]["mount_MAX"].IntValue = mount_MAX;
            table.ship["ECS"]["sys_EB"].IntValue    = sys_EB;
            table.ship["ECS"]["sys_quad"].IntValue  = sys_quad;
        }
Пример #18
0
 public TMS(ShipTable table)
 {
     mount_MAX              = table.ship["TMS"]["mount_MAX"].IntValue;
     sys_EB                 = table.ship["TMS"]["sys_EB"].IntValue;
     sys_quad               = table.ship["TMS"]["sys_quad"].IntValue;
     heatpipe_TOTAL         = table.ship["TMS"]["heatpipe_TOTAL"].IntValue;
     heatpipe_SURFACEvolume = table.ship["TMS"]["heatpipe_SURFACEvolume"].Value;
     COOLloopTOTAL          = table.ship["TMS"]["COOLloopTOTAL"].IntValue;
     COOLareaMIN            = table.ship["TMS"]["COOLareaMIN"].Value;
     COOLareaMAX            = table.ship["TMS"]["COOLareaMAX"].Value;
     COOLareaREFLECT        = table.ship["TMS"]["COOLareaREFLECT"].Value;
     COOLlevelMAX           = table.ship["TMS"]["COOLlevelMAX"].Value;
     COOLpsiMAX             = table.ship["TMS"]["COOLpsiMAX"].Value;
     COOLcoolant            = table.ship["TMS"]["COOLcoolant"].Value;
     COOLtankCAP            = table.ship["TMS"]["COOLtankCAP"].Value;
     COOLlinelength         = table.ship["TMS"]["COOLlinelength"].Value;
 }
Пример #19
0
        public ECS(ShipTable table)
        {
            ECS_PWRpercent  = table.ship["ECS_PWRpercent"].Value;
            ECS_MASSpercent = table.ship["ECS_MASSpercent"].Value;
            ECS_SYStotal    = table.ship["ECS_SYStotal"].IntValue;
            ECS_SYSAMPSmax  = table.ship["ECS_SYSAMPSmax"].Value;
            ECS_HVtotal     = table.ship["ECS_HVtotal"].IntValue;
            ECS_HVAMPSmax   = table.ship["ECS_HVAMPSmax"].Value;
            ECS_WPNtotal    = table.ship["ECS_WPNtotal"].IntValue;
            ECS_WPNAMPSmax  = table.ship["ECS_WPNAMPSmax"].Value;
            ECS_RSRVAMPSmax = table.ship["ECS_RSRVAMPSmax"].Value;
            ECS_EMRGAMPSmax = table.ship["ECS_EMRGAMPSmax"].Value;

            mount_MAX = table.ship["ECS"]["mount_MAX"].IntValue;
            sys_EB    = table.ship["ECS"]["sys_EB"].IntValue;
            sys_quad  = table.ship["ECS"]["sys_quad"].IntValue;
        }
Пример #20
0
        public override void AddToTable(ShipTable table)
        {
            table.ship["totalATTACHMENTS"].Value = attachements.Count;
            int i = 1;

            foreach (Attachement attach in attachements)
            {
                table.shipCoords["AttachPoint" + i + "ObjPos"]         = attach.Position.ToTable();
                table.shipCoords["AttachPoint" + i + "ObjRot"]         = attach.Rotation.ToTable();
                table.shipCoords["AttachPoint" + i + "Size"].IntValue  = attach.Size;
                table.shipCoords["AttachPoint" + i + "Name"].Value     = attach.Name;
                table.shipCoords["AttachPoint" + i + "isTOWING"].Value = attach.IsTowing ? 1 : 0;
                table.shipCoords["AttachPoint" + i + "swapXZ"].Value   = attach.SwapXZ ? 1 : 0;
                table.shipCoords["AttachPoint" + i + "invertX"].Value  = attach.InvertX ? -1 : 1; // 1 is usual, -1 is inverted
                i++;
            }
        }
Пример #21
0
 override public void AddToTable(ShipTable table)
 {
     table.ship["TMS"]["mount_MAX"].IntValue           = mount_MAX;
     table.ship["TMS"]["sys_EB"].IntValue              = sys_EB;
     table.ship["TMS"]["sys_quad"].IntValue            = sys_quad;
     table.ship["TMS"]["heatpipe_TOTAL"].IntValue      = heatpipe_TOTAL;
     table.ship["TMS"]["heatpipe_SURFACEvolume"].Value = heatpipe_SURFACEvolume;
     table.ship["TMS"]["COOLloopTOTAL"].IntValue       = COOLloopTOTAL;
     table.ship["TMS"]["COOLareaMIN"].Value            = COOLareaMIN;
     table.ship["TMS"]["COOLareaMAX"].Value            = COOLareaMAX;
     table.ship["TMS"]["COOLareaREFLECT"].Value        = COOLareaREFLECT;
     table.ship["TMS"]["COOLlevelMAX"].Value           = COOLlevelMAX;
     table.ship["TMS"]["COOLpsiMAX"].Value             = COOLpsiMAX;
     table.ship["TMS"]["COOLcoolant"].Value            = COOLcoolant;
     table.ship["TMS"]["COOLtankCAP"].Value            = COOLtankCAP;
     table.ship["TMS"]["COOLlinelength"].Value         = COOLlinelength;
 }
Пример #22
0
        public AttachementManager(ShipTable table)
        {
            attachements = new BindingList <Attachement>();
            int i = 1;

            while (table.shipCoords["AttachPoint" + i + "Name"].Value != null)
            {
                Attachement attach = new Attachement();
                attach.Position = new Vector3(table.shipCoords["AttachPoint" + i + "ObjPos"]);
                attach.Rotation = new Vector3(table.shipCoords["AttachPoint" + i + "ObjRot"]);
                attach.Size     = table.shipCoords["AttachPoint" + i + "Size"].IntValue;
                attach.Name     = table.shipCoords["AttachPoint" + i + "Name"].Value;
                attach.IsTowing = table.shipCoords["AttachPoint" + i + "isTOWING"].Value > 0.5;
                attach.SwapXZ   = table.shipCoords["AttachPoint" + i + "swapXZ"].Value > 0.5;
                attach.InvertX  = table.shipCoords["AttachPoint" + i + "invertX"].Value < 0; // 1 is usual, -1 is inverted
                attachements.Add(attach);
                i++;
            }
        }
Пример #23
0
        public LSS(ShipTable table)
        {
            scrubber            = new BindingList <Scrubber>();
            mount_MAX           = table.ship["LSS"]["mount_MAX"].IntValue;
            sys_EB              = table.ship["LSS"]["sys_EB"].IntValue;
            sys_quad            = table.ship["LSS"]["sys_quad"].IntValue;
            TANKAtotal          = table.ship["LSS"]["TANKAtotal"].IntValue;
            TANKBtotal          = table.ship["LSS"]["TANKBtotal"].IntValue;
            TANKCtotal          = table.ship["LSS"]["TANKCtotal"].IntValue;
            LIFESUPPORTAtankCAP = table.ship["LSS"]["LIFESUPPORTAtankCAP"].Value;
            LIFESUPPORTBtankCAP = table.ship["LSS"]["LIFESUPPORTBtankCAP"].Value;
            CONSUMABLEtankCAP   = table.ship["LSS"]["CONSUMABLEtankCAP"].Value;

            int i = 1;

            while (table.ship["LSS"]["scrubber" + i + "_LOC"].Count > 0)
            {
                scrubber.Add(new Scrubber(table.ship["LSS"]["scrubber" + i + "_LOC"]));
                i++;
            }
        }
Пример #24
0
        override public void AddToTable(ShipTable table)
        {
            table.ship["LSS"]["mount_MAX"].IntValue        = mount_MAX;
            table.ship["LSS"]["sys_EB"].IntValue           = sys_EB;
            table.ship["LSS"]["sys_quad"].IntValue         = sys_quad;
            table.ship["LSS"]["TANKAtotal"].IntValue       = TANKAtotal;
            table.ship["LSS"]["TANKBtotal"].IntValue       = TANKBtotal;
            table.ship["LSS"]["TANKCtotal"].IntValue       = TANKCtotal;
            table.ship["LSS"]["LIFESUPPORTAtankCAP"].Value = LIFESUPPORTAtankCAP;
            table.ship["LSS"]["LIFESUPPORTBtankCAP"].Value = LIFESUPPORTBtankCAP;
            table.ship["LSS"]["CONSUMABLEtankCAP"].Value   = CONSUMABLEtankCAP;


            table.ship["LSS"]["scrubber_TOTAL"].Value = scrubber.Count;
            int i = 1;

            foreach (Scrubber scrub in scrubber)
            {
                table.ship["LSS"]["scrubber" + i + "_LOC"] = scrub.ToTable();
                i++;
            }
        }
Пример #25
0
 override public void AddToTable(ShipTable table)
 {
     table.ship["NAS"]["mount_MAX"].IntValue = mount_MAX;
     table.ship["NAS"]["sys_EB"].IntValue    = sys_EB;
     table.ship["NAS"]["sys_quad"].IntValue  = sys_quad;
 }
Пример #26
0
 override public void AddToTable(ShipTable table)
 {
     table.shipCoords["MFD1"]["UpperLeft"]  = UpperLeft.ToTable();
     table.shipCoords["MFD1"]["Dimensions"] = Dimensions.ToTable();
 }
Пример #27
0
 public VMS(ShipTable table)
 {
     Dimensions = new Vector2(table.shipCoords["VMS1"]["Dimensions"]);
     normFOV    = table.shipCoords["VMS1"]["normFOV"].Value;
 }
Пример #28
0
 public RCM(ShipTable table)
 {
     mount_MAX = table.ship["RCM"]["mount_MAX"].IntValue;
     sys_EB    = table.ship["RCM"]["sys_EB"].IntValue;
     sys_quad  = table.ship["RCM"]["sys_quad"].IntValue;
 }
Пример #29
0
        override public void AddToTable(ShipTable table)
        {
            table.ship["WPN_CAP"]["mount_MAX"].Value     = 1;
            table.ship["WPN_CAP"]["total_ALLOWED"].Value = 0;
            table.ship["WPN_CAP"]["sys1_EB"].Value       = 3;
            table.ship["WPN_CAP"]["sys1_quad"].Value     = 64;

            table.ship["WPN_PRI"]["mount_MAX"].Value     = 1;
            table.ship["WPN_PRI"]["total_ALLOWED"].Value = 0;
            table.ship["WPN_PRI"]["sys1_EB"].Value       = 3;
            table.ship["WPN_PRI"]["sys1_quad"].Value     = 2;
            table.ship["WPN_PRI"]["sys2_EB"].Value       = 4;
            table.ship["WPN_PRI"]["sys2_quad"].Value     = 1;

            table.ship["WPN_SEC"]["mount_MAX"].Value     = 1;
            table.ship["WPN_SEC"]["total_ALLOWED"].Value = 0;
            table.ship["WPN_SEC"]["sys1_EB"].Value       = 3;
            table.ship["WPN_SEC"]["sys1_quad"].Value     = 2;
            table.ship["WPN_SEC"]["sys2_EB"].Value       = 4;
            table.ship["WPN_SEC"]["sys2_quad"].Value     = 1;

            table.ship["WTC"]["mount_MAX"].Value = 2;
            table.ship["WTC"]["sys_EB"].Value    = 1;
            table.ship["WTC"]["sys_quad"].Value  = 2;

            table.ship["maxATTACHmount"].Value   = 1;
            table.ship["maxTERWPNmount"].Value   = 1;
            table.ship["totalCREW"].Value        = 1;
            table.ship["totalHATCHES"].Value     = 6;
            table.ship["totalPASSENGERS"].Value  = 0;
            table.ship["maxSOImount"].Value      = 1;
            table.ship["totalHMDs"].Value        = 0;
            table.ship["totalHANGARS"].Value     = 0;
            table.ship["totalDOCKINGBAYS"].Value = 0;
            table.ship["totalTERWPN"].Value      = 0;


            table.ship["equip_BAY1"]["name"].Value = "Forward Dorsal";
            table.ship["equip_BAY2"]["name"].Value = "Forward Ventral";
            table.ship["equip_BAY3"]["name"].Value = "Central Port";
            table.ship["equip_BAY4"]["name"].Value = "Central Starboard";
            table.ship["equip_BAY5"]["name"].Value = "Central Aft";
            table.ship["equip_BAY6"]["name"].Value = "Aft";

            table.shipCoords["RegionTotal"].IntValue           = RegionTotal;
            table.shipCoords["Region1"]["mustCROUCH"].IntValue = mustCROUCH;
            table.shipCoords["Region1"]["mustSTAND"].IntValue  = mustSTAND;
            table.shipCoords["Region1"]["isZeroG"].IntValue    = isZeroG;
            table.shipCoords["Region1"]["location"]            = location.ToTable();
            table.shipCoords["Region1"]["radius"].Value        = radius;

            table.shipCoords["LandAlignmentPos"] = LandAlignmentPos.ToTable();

            table.shipCoords["PriWepExtObjects"].IntValue = RegionTotal;

            table.shipCoords["PriWep1ObjPos"] = PriWep1ObjPos.ToTable();
            table.shipCoords["PriWep1ObjRot"] = PriWep1ObjRot.ToTable();
            table.shipCoords["PriWep2ObjPos"] = PriWep2ObjPos.ToTable();
            table.shipCoords["PriWep2ObjRot"] = PriWep2ObjRot.ToTable();
            table.shipCoords["SecWep1ObjPos"] = SecWep1ObjPos.ToTable();
            table.shipCoords["SecWep1ObjRot"] = SecWep1ObjRot.ToTable();
            table.shipCoords["SecWep2ObjPos"] = SecWep2ObjPos.ToTable();
            table.shipCoords["SecWep2ObjRot"] = SecWep2ObjRot.ToTable();
            table.shipCoords["SecWep3ObjPos"] = SecWep3ObjPos.ToTable();
            table.shipCoords["SecWep3ObjRot"] = SecWep3ObjRot.ToTable();
            table.shipCoords["SecWep4ObjPos"] = SecWep4ObjPos.ToTable();
            table.shipCoords["SecWep4ObjRot"] = SecWep4ObjRot.ToTable();
            table.shipCoords["TerWep1Pos"]    = TerWep1Pos.ToTable();
            table.shipCoords["TerWep2Pos"]    = TerWep2Pos.ToTable();
        }
Пример #30
0
 override public void AddToTable(ShipTable table)
 {
     table.shipCoords["VMS1"]["Dimensions"]    = Dimensions.ToTable();
     table.shipCoords["VMS1"]["normFOV"].Value = normFOV;
 }