protected override bool DecodePacket(MessageStructure reader, MessageHead head) { responsePack = ProtoBufUtils.Deserialize<Response1007Pack>(netReader.Buffer); string responseDataInfo = ""; responseDataInfo = "request :" + Game.Utils.JsonHelper.prettyJson<Request1007Pack>(req) + "\n"; responseDataInfo += "response:" + Game.Utils.JsonHelper.prettyJson<Response1007Pack>(responsePack) + "\n"; DecodePacketInfo = responseDataInfo; int childId = getChild(1007); if(childId>0) { System.Collections.Generic.Dictionary<string, string> dic = new System.Collections.Generic.Dictionary<string, string>(); dic.Add("the3rdUserID", req.the3rdUserID.ToString()); SetChildStep(childId.ToString(), _setting, dic); } return true; }
public Action1007(ActionGetter actionGetter) : base(1007, actionGetter) { responsePack = new Response1007Pack(); }