示例#1
0
 public void addType(ShipWeapon.WeaponType weaponType)
 {
     if (!acceptedTypes.Contains(weaponType))
     {
         acceptedTypes.Add(weaponType);
         numTypes++;
     }
 }
示例#2
0
 public ShipWeapon.WeaponType[] validTypes()
 {
     ShipWeapon.WeaponType[] a = new ShipWeapon.WeaponType[numTypes];
     acceptedTypes.CopyTo(a);
     return(a);
 }