Example #1
0
 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);
     }
 }
Example #2
0
 public NetMsg()
 {
     this.OP = NetOP.None;
 }
Example #3
0
 public NetMsg(NetOP op)
 {
     OP = op;
 }
Example #4
0
 public NetMsg()
 {
     OP = NetOP.None;
 }