Beispiel #1
0
 public clsTurret()
 {
     this.TurretObjectDataLink = new modLists.ConnectedListLink<clsTurret, clsObjectData>(this);
     this.Attachment = new clsUnitType.clsAttachment();
     this.TurretType = enumTurretType.Unknown;
 }
Beispiel #2
0
 public Turret FindOrCreateTurret(enumTurretType TurretType, string TurretCode)
 {
     switch ( TurretType )
     {
         case enumTurretType.Weapon:
             return FindOrCreateWeapon(TurretCode);
         case enumTurretType.Construct:
             return FindOrCreateConstruct(TurretCode);
         case enumTurretType.Repair:
             return FindOrCreateRepair(TurretCode);
         case enumTurretType.Sensor:
             return FindOrCreateSensor(TurretCode);
         case enumTurretType.Brain:
             return FindOrCreateBrain(TurretCode);
         case enumTurretType.ECM:
             return FindOrCreateECM(TurretCode);
         default:
             return null;
     }
 }