public void AddDataHandler(NetOP OP, ServerMessageHandlerDelegate handler) { if (dataHandlers.ContainsKey(OP) == false) { dataHandlers.Add(OP, handler); } else if (SHOW_LOGS) { string msgType = Enum.GetName(typeof(NetOP), OP); string logMsg = String.Format("Handler already registered for this message : {0}", msgType); Debug.LogError(logMsg); } }
public NetMsg() { this.OP = NetOP.None; }
public NetMsg(NetOP op) { OP = op; }
public NetMsg() { OP = NetOP.None; }