Пример #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;
 }