Пример #1
0
        public static NatPunchthroughServer GetInstance()
        {
            IntPtr cPtr = RakNetPINVOKE.NatPunchthroughServer_GetInstance();
            NatPunchthroughServer ret = (cPtr == IntPtr.Zero) ? null : new NatPunchthroughServer(cPtr, false);

            return(ret);
        }
Пример #2
0
 public static void DestroyInstance(NatPunchthroughServer i)
 {
     RakNetPINVOKE.NatPunchthroughServer_DestroyInstance(NatPunchthroughServer.getCPtr(i));
 }
 internal static HandleRef getCPtr(NatPunchthroughServer obj)
 {
     return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
 }
Пример #4
0
 internal static HandleRef getCPtr(NatPunchthroughServer obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
 public static void DestroyInstance(NatPunchthroughServer i)
 {
     RakNetPINVOKE.NatPunchthroughServer_DestroyInstance(NatPunchthroughServer.getCPtr(i));
 }