コード例 #1
0
        public override void AcceptChanges()
        {
            if (Art != null)
            {
                Art.AcceptChanges();
            }
            if (FleetAICommonality != null)
            {
                FleetAICommonality.AcceptChanges();
            }
            if (Carrier != null)
            {
                Carrier.AcceptChanges();
            }
            if (InternalDefinition != null)
            {
                InternalDefinition.AcceptChanges();
            }
            Shields.AcceptChanges();
            if (Performance != null)
            {
                Performance.AcceptChanges();
            }
            if (BeamPorts != null)
            {
                BeamPorts.AcceptChanges();
            }
            if (DronePorts != null)
            {
                DronePorts.AcceptChanges();
            }
            if (Torpedoes != null)
            {
                Torpedoes.AcceptChanges();
            }


            if (TorpedoTubes != null)
            {
                TorpedoTubes.AcceptChanges();
            }
            if (EnginePorts != null)
            {
                EnginePorts.AcceptChanges();
            }

            if (ManeuverPoints != null)
            {
                ManeuverPoints.AcceptChanges();
            }

            if (ImpulsePoints != null)
            {
                ImpulsePoints.AcceptChanges();
            }


            if (Description != null)
            {
                Description.AcceptChanges();
            }
            base.AcceptChanges();
        }
コード例 #2
0
ファイル: AmmoWeapon.xaml.cs プロジェクト: hooperk/Starship
 public AmmoWeapon(WeaponSlot facing, StarshipCreator parent, int index, TorpedoTubes weapon, bool enabled = true)
     : this(facing, parent, index, (Weapon)weapon, enabled)
 {
     AmmoButton.Content = "Torpedoes";
     Tubes = true;
 }
コード例 #3
0
        public override void  EndInitialization()
        {
            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Starting {0}", MethodBase.GetCurrentMethod().ToString());
            }
            if (Art != null)
            {
                Art.EndInitialization();
            }
            if (FleetAICommonality != null)
            {
                FleetAICommonality.EndInitialization();
            }
            if (InternalDefinition != null)
            {
                InternalDefinition.EndInitialization();
            }
            if (Carrier != null)
            {
                Carrier.EndInitialization();
            }
            Shields.EndInitialization();
            if (Performance != null)
            {
                Performance.EndInitialization();
            }
            if (DronePorts != null)
            {
                DronePorts.EndInitialization();
            }
            if (BeamPorts != null)
            {
                BeamPorts.EndInitialization();
            }
            if (TorpedoTubes != null)
            {
                TorpedoTubes.EndInitialization();
            }
            if (EnginePorts != null)
            {
                EnginePorts.EndInitialization();
            }

            if (ManeuverPoints != null)
            {
                ManeuverPoints.EndInitialization();
            }

            if (ImpulsePoints != null)
            {
                ImpulsePoints.EndInitialization();
            }



            if (Torpedoes != null)
            {
                Torpedoes.EndInitialization();
            }
            if (Description != null)
            {
                Description.EndInitialization();
            }
            base.EndInitialization();
            if (_log.IsDebugEnabled)
            {
                _log.DebugFormat("Ending {0}", MethodBase.GetCurrentMethod().ToString());
            }
        }