public static Chokepoint getNearestChokepoint(int x, int y) { global::System.IntPtr cPtr = bwtaPINVOKE.getNearestChokepoint__SWIG_0(x, y); Chokepoint ret = (cPtr == global::System.IntPtr.Zero) ? null : new Chokepoint(cPtr, false); return(ret); }
public bool Equals(Chokepoint obj) { if (obj == null) { return(false); } return(obj.swigCPtr.Handle == this.swigCPtr.Handle); }
public static Chokepoint getNearestChokepoint(Position position) { global::System.IntPtr cPtr = bwtaPINVOKE.getNearestChokepoint__SWIG_2(Position.getCPtr(position)); Chokepoint ret = (cPtr == global::System.IntPtr.Zero) ? null : new Chokepoint(cPtr, false); if (bwtaPINVOKE.SWIGPendingException.Pending) { throw bwtaPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
public bool Equals(Chokepoint obj) { if (obj == null) return false; return (obj.swigCPtr.Handle == this.swigCPtr.Handle); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Chokepoint obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Chokepoint obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr); }
internal static HandleRef getCPtr(Chokepoint obj) { return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr; }