// 해시테이블에 패킷과 처리할 함수 등록 public void RegisterReceiveNotification(PacketId id, RecvNotifier _notifier) { int index = (int)id; if (notifier.ContainsKey(index)) { notifier.Remove(index); } notifier.Add(index, _notifier); }
public void RegisterReceiveNotificationServer(int packetID, RecvNotifier notifier) { m_notiServer.Add(packetID, notifier); }
public void RegisterReceiveNotificationP2P(int packetID, RecvNotifier notifier) { m_notiP2P.Add(packetID, notifier); }
public void RegisterReceiveNotification(PacketId id, RecvNotifier notifier) { int index = (int)id; m_notifier.Add(index, notifier); }