Exemple #1
0
 public void Register <T>(int id, string name, int length, TypedPacketReceiveHandler onReceive) where T : IRecvPacket
 {
     m_RegisteredHandlers.Add(new Tuple <int, TypedPacketReceiveHandler>(id, onReceive));
     m_Network.Register <T>(id, name, length, onReceive);
 }
Exemple #2
0
 public void Register <T>(int id, int length, Action <T> onReceive) where T : IRecvPacket
 {
     _network.Register(this, id, length, onReceive);
 }