示例#1
0
 internal ENetPeer(ENetHost host, Native.ENetPeer *native)
 {
     Host = host;
     host.m_Peers.Add(this);
     Unsafe       = native;
     m_Handle     = GCHandle.Alloc(this, GCHandleType.Normal);
     Unsafe->Data = GCHandle.ToIntPtr(m_Handle);
 }
示例#2
0
 internal ENetHostPeerList(ENetHost host)
 {
     Host = host;
 }