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