예제 #1
0
 public ShipModule(ShipModule other)
 {
     Slot          = other.Slot; SlotFD = other.SlotFD; Item = other.Item; ItemFD = other.ItemFD;
     LocalisedItem = other.LocalisedItem;
     Enabled       = other.Enabled; Priority = other.Priority; Health = other.Health; Value = other.Value;
     AmmoClip      = other.AmmoClip; AmmoHopper = other.AmmoHopper; Power = other.Power;
     Engineering   = other.Engineering;
 }
예제 #2
0
        public bool Same(ShipModule other)                                                                        // ignore localisased item, it does not occur everywhere..
        {
            bool engsame = Engineering != null?Engineering.Same(other.Engineering) : (other.Engineering == null); // if null, both null, else use the same func

            return(Slot == other.Slot && Item == other.Item && Enabled == other.Enabled &&
                   Priority == other.Priority && AmmoClip == other.AmmoClip && AmmoHopper == other.AmmoHopper &&
                   Health == other.Health && Value == other.Value && engsame);
        }