protected override bool DecodePacket(MessageStructure reader, MessageHead head) { responsePack = ProtoBufUtils.Deserialize <Response1004Pack>(netReader.Buffer); string responseDataInfo = ""; responseDataInfo = "request :" + Game.Utils.JsonHelper.prettyJson <Request1004Pack>(req) + "\n"; responseDataInfo += "response:" + Game.Utils.JsonHelper.prettyJson <Response1004Pack>(responsePack) + "\n"; DecodePacketInfo = responseDataInfo; return(true); }
public Action1004(ActionGetter actionGetter) : base(1004, actionGetter) { responsePack = new Response1004Pack(); }