コード例 #1
0
        protected override bool DecodePacket(MessageStructure reader, MessageHead head)
        {
            responsePack = ProtoBufUtils.Deserialize <Response1005Pack>(netReader.Buffer);
            string responseDataInfo = "";

            responseDataInfo  = "request :" + Game.Utils.JsonHelper.prettyJson <Request1005Pack>(req) + "\n";
            responseDataInfo += "response:" + Game.Utils.JsonHelper.prettyJson <Response1005Pack>(responsePack) + "\n";
            DecodePacketInfo  = responseDataInfo;
            int childStepId = getChild(1005);

            if (childStepId > 0)
            {
                Dictionary <string, string> dic = new Dictionary <string, string>();
                dic.Add("the3rdUserID", responsePack.the3rdUserId.ToString());
                dic.Add("strThe3rdUserID", dic["the3rdUserID"]);
                SetChildStep(childStepId.ToString(), _setting, dic);
            }
            return(true);
        }
コード例 #2
0
ファイル: Action1005.cs プロジェクト: dannisliang/scutlogic
 public Action1005(ActionGetter actionGetter)
     : base(1005, actionGetter)
 {
     responsePack = new Response1005Pack();
 }