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); }
public Action4001(ActionGetter actionGetter) : base(4001, actionGetter) { responsePack = new Response1002Pack(); }
public Action1002(ActionGetter actionGetter) : base(1002, actionGetter) { responsePack = new Response1002Pack(); }