public RakPeerInterface GetRakPeerInterface()
        {
            IntPtr           cPtr = SLikeNetPINVOKE.PluginInterface2_GetRakPeerInterface(swigCPtr);
            RakPeerInterface ret  = (cPtr == IntPtr.Zero) ? null : new RakPeerInterface(cPtr, false);

            return(ret);
        }
Example #2
0
        public static RakPeerInterface GetInstance()
        {
            IntPtr           cPtr = SLikeNetPINVOKE.RakPeerInterface_GetInstance();
            RakPeerInterface ret  = (cPtr == IntPtr.Zero) ? null : new RakPeerInterface(cPtr, false);

            return(ret);
        }
Example #3
0
 public void Send(FileList fileList, RakPeerInterface rakPeer, SystemAddress recipient, ushort setID, PacketPriority priority, char orderingChannel, IncrementalReadInterface _incrementalReadInterface)
 {
     SLikeNetPINVOKE.FileListTransfer_Send__SWIG_1(swigCPtr, FileList.getCPtr(fileList), RakPeerInterface.getCPtr(rakPeer), SystemAddress.getCPtr(recipient), setID, (int)priority, orderingChannel, IncrementalReadInterface.getCPtr(_incrementalReadInterface));
     if (SLikeNetPINVOKE.SWIGPendingException.Pending)
     {
         throw SLikeNetPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public static void DestroyInstance(RakPeerInterface i)
 {
     SLikeNetPINVOKE.RakPeerInterface_DestroyInstance(RakPeerInterface.getCPtr(i));
 }
Example #5
0
 internal static HandleRef getCPtr(RakPeerInterface obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }