Exemple #1
0
 protected virtual void AddProtoDic(Com.Shapejoy.Remotecontrol.Proto.Event typeID)
 {
     ProtoDic.Instance.AddProtoType((int)typeID, typeof(IMessage));
 }
Exemple #2
0
 protected void SendTos(IMessage obj, Com.Shapejoy.Remotecontrol.Proto.Event typeID)
 {
     SocketManager.Instance.SendMessage(obj, (int)typeID);
 }
Exemple #3
0
 protected virtual void AddProtoDic <T2>(Com.Shapejoy.Remotecontrol.Proto.Event typeID) where T2 : IMessage
 {
     ProtoDic.Instance.AddProtoType((int)typeID, typeof(T2));
 }
Exemple #4
0
 protected void RemoveTocHandler(Com.Shapejoy.Remotecontrol.Proto.Event type, Action <Message> handler)
 {
     SocketManager.Instance.RemoveHandler(type, handler);
 }