public void SendMsgLobby(EMsgCL msgId, ISerializable body) { var writer = new Serializer(); writer.PutByte((byte)msgId); body.Serialize(writer); _netProxyLobby.Send(Compressor.Compress(writer)); }
public void RegisterMsgHandler(EMsgCL type, NetMsgHandler handler) { _netProxyLobby.RegisterMsgHandler((byte)type, handler); }
private void RegisterNetMsgHandler(EMsgCL type, DealNetMsg func) { allMsgDealFuncs[(int)type] = func; }
protected void SendMessage(EMsgCL type, object body) { }