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