Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 public Action4001(ActionGetter actionGetter)
     : base(4001, actionGetter)
 {
     responsePack = new Response1002Pack();
 }
Ejemplo n.º 3
0
 public Action1002(ActionGetter actionGetter)
     : base(1002, actionGetter)
 {
     responsePack = new Response1002Pack();
 }