Example #1
0
        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);
        }
Example #2
0
 public Action1012(ActionGetter actionGetter)
     : base(1012, actionGetter)
 {
     responsePack = new Response1012Pack();
 }