Ejemplo n.º 1
0
 public PlayerConnection(NetConnection netConnection, NetHandler netHandler)
 {
     _netConnection = netConnection;
     _netHandler    = netHandler;
     _handlers      = new Dictionary <PacketType, Action <PacketReceivedEventArgs> >();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initalizes with a specified NetHandler object, enabling the creation of packets.
 /// </summary>
 /// <param name="netHandler"></param>
 public static void Initalize(NetHandler netHandler)
 {
     _netHandler = netHandler;
 }