コード例 #1
0
 public static WeaponType getWeaponType(string name) {
   WeaponType ret = new WeaponType(bwapiPINVOKE.getWeaponType(name), true);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #2
0
 public WeaponType getWeapon() {
   WeaponType ret = new WeaponType(bwapiPINVOKE.TechType_getWeapon(swigCPtr), true);
   return ret;
 }
コード例 #3
0
 public WeaponType airWeapon() {
   WeaponType ret = new WeaponType(bwapiPINVOKE.UnitType_airWeapon(swigCPtr), true);
   return ret;
 }
コード例 #4
0
 public WeaponType opAssign(WeaponType other) {
   WeaponType ret = new WeaponType(bwapiPINVOKE.WeaponType_opAssign(swigCPtr, WeaponType.getCPtr(other)), false);
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
コード例 #5
0
 public WeaponType(WeaponType other) : this(bwapiPINVOKE.new_WeaponType__SWIG_2(WeaponType.getCPtr(other)), true) {
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
 }
コード例 #6
0
public bool Equals(WeaponType obj) 
{
    if (obj == null) return false;
    return (obj.swigCPtr.Handle == this.swigCPtr.Handle);
}
コード例 #7
0
 internal static HandleRef getCPtr(WeaponType obj) {
   return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
コード例 #8
0
 public bool opLessThan(WeaponType other) {
   bool ret = bwapiPINVOKE.WeaponType_opLessThan(swigCPtr, WeaponType.getCPtr(other));
   if (bwapiPINVOKE.SWIGPendingException.Pending) throw bwapiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }