示例#1
0
 protected override bool DecodePacket(MessageStructure reader, MessageHead head)
 {
     responsePack = ProtoBufUtils.Deserialize<Response1002Pack>(netReader.Buffer);
     string responseDataInfo = "";
     responseDataInfo = "request :" + Game.Utils.JsonHelper.prettyJson<Request1002Pack>(req) + "\n";
     responseDataInfo += "response:" + Game.Utils.JsonHelper.prettyJson<Response1002Pack>(responsePack) + "\n";
     DecodePacketInfo = responseDataInfo;
     return true;
 }
示例#2
0
 public Action4001(ActionGetter actionGetter)
     : base(4001, actionGetter)
 {
     responsePack = new Response1002Pack();
 }