/// <summary> /// 从列表数据读取 /// </summary> public override void readListData(PlayerListData listData) { HPlayerListData mData = (HPlayerListData)listData; this.system.setData(mData.system); this.gfunc.setData(mData.gfunc); this.activity.setData(mData.activity); this.grole.setData(mData.grole); this.gscene.setData(mData.gscene); this.gcharacter.setData(mData.gcharacter); this.social.setData(mData.social); this.gbag.setData(mData.gbag); this.mail.setData(mData.mail); this.quest.setData(mData.quest); this.guide.setData(mData.guide); this.gfriend.setData(mData.gfriend); this.gunion.setData(mData.gunion); this.gteam.setData(mData.gteam); }
/// <summary> /// 写列表数据(深拷) /// </summary> public override void writeListData(PlayerListData listData) { HPlayerListData mData = (HPlayerListData)listData; mData.system = (SystemPartData)this.system.makePartData(); mData.gfunc = (GFuncPartData)this.gfunc.makePartData(); mData.activity = (ActivityPartData)this.activity.makePartData(); mData.grole = (GRolePartData)this.grole.makePartData(); mData.gscene = (GScenePartData)this.gscene.makePartData(); mData.gcharacter = (GCharacterPartData)this.gcharacter.makePartData(); mData.social = (SocialPartData)this.social.makePartData(); mData.gbag = (GBagPartData)this.gbag.makePartData(); mData.mail = (MailPartData)this.mail.makePartData(); mData.quest = (QuestPartData)this.quest.makePartData(); mData.guide = (GuidePartData)this.guide.makePartData(); mData.gfriend = (GFriendPartData)this.gfriend.makePartData(); mData.gunion = (GUnionPartData)this.gunion.makePartData(); mData.gteam = (GTeamPartData)this.gteam.makePartData(); }
/// <summary> /// 复制(潜拷贝) /// </summary> protected override void toShadowCopy(BaseData data) { if (!(data is HPlayerListData)) { return; } HPlayerListData mData = (HPlayerListData)data; this.system = mData.system; this.gfunc = mData.gfunc; this.activity = mData.activity; this.grole = mData.grole; this.gscene = mData.gscene; this.gcharacter = mData.gcharacter; this.social = mData.social; this.gbag = mData.gbag; this.mail = mData.mail; this.quest = mData.quest; this.guide = mData.guide; this.gfriend = mData.gfriend; this.gunion = mData.gunion; this.gteam = mData.gteam; }
/// <summary> /// 是否数据一致 /// </summary> protected override bool toDataEquals(BaseData data) { HPlayerListData mData = (HPlayerListData)data; if (mData.system != null) { if (this.system == null) { return(false); } if (!this.system.dataEquals(mData.system)) { return(false); } } else { if (this.system != null) { return(false); } } if (mData.gfunc != null) { if (this.gfunc == null) { return(false); } if (!this.gfunc.dataEquals(mData.gfunc)) { return(false); } } else { if (this.gfunc != null) { return(false); } } if (mData.activity != null) { if (this.activity == null) { return(false); } if (!this.activity.dataEquals(mData.activity)) { return(false); } } else { if (this.activity != null) { return(false); } } if (mData.grole != null) { if (this.grole == null) { return(false); } if (!this.grole.dataEquals(mData.grole)) { return(false); } } else { if (this.grole != null) { return(false); } } if (mData.gscene != null) { if (this.gscene == null) { return(false); } if (!this.gscene.dataEquals(mData.gscene)) { return(false); } } else { if (this.gscene != null) { return(false); } } if (mData.gcharacter != null) { if (this.gcharacter == null) { return(false); } if (!this.gcharacter.dataEquals(mData.gcharacter)) { return(false); } } else { if (this.gcharacter != null) { return(false); } } if (mData.social != null) { if (this.social == null) { return(false); } if (!this.social.dataEquals(mData.social)) { return(false); } } else { if (this.social != null) { return(false); } } if (mData.gbag != null) { if (this.gbag == null) { return(false); } if (!this.gbag.dataEquals(mData.gbag)) { return(false); } } else { if (this.gbag != null) { return(false); } } if (mData.mail != null) { if (this.mail == null) { return(false); } if (!this.mail.dataEquals(mData.mail)) { return(false); } } else { if (this.mail != null) { return(false); } } if (mData.quest != null) { if (this.quest == null) { return(false); } if (!this.quest.dataEquals(mData.quest)) { return(false); } } else { if (this.quest != null) { return(false); } } if (mData.guide != null) { if (this.guide == null) { return(false); } if (!this.guide.dataEquals(mData.guide)) { return(false); } } else { if (this.guide != null) { return(false); } } if (mData.gfriend != null) { if (this.gfriend == null) { return(false); } if (!this.gfriend.dataEquals(mData.gfriend)) { return(false); } } else { if (this.gfriend != null) { return(false); } } if (mData.gunion != null) { if (this.gunion == null) { return(false); } if (!this.gunion.dataEquals(mData.gunion)) { return(false); } } else { if (this.gunion != null) { return(false); } } if (mData.gteam != null) { if (this.gteam == null) { return(false); } if (!this.gteam.dataEquals(mData.gteam)) { return(false); } } else { if (this.gteam != null) { return(false); } } return(true); }
/// <summary> /// 复制(深拷贝) /// </summary> protected override void toCopy(BaseData data) { if (!(data is HPlayerListData)) { return; } HPlayerListData mData = (HPlayerListData)data; if (mData.system != null) { this.system = (SystemPartData)mData.system.clone(); } else { this.system = null; nullObjError("system"); } if (mData.gfunc != null) { this.gfunc = (GFuncPartData)mData.gfunc.clone(); } else { this.gfunc = null; nullObjError("gfunc"); } if (mData.activity != null) { this.activity = (ActivityPartData)mData.activity.clone(); } else { this.activity = null; nullObjError("activity"); } if (mData.grole != null) { this.grole = (GRolePartData)mData.grole.clone(); } else { this.grole = null; nullObjError("grole"); } if (mData.gscene != null) { this.gscene = (GScenePartData)mData.gscene.clone(); } else { this.gscene = null; nullObjError("gscene"); } if (mData.gcharacter != null) { this.gcharacter = (GCharacterPartData)mData.gcharacter.clone(); } else { this.gcharacter = null; nullObjError("gcharacter"); } if (mData.social != null) { this.social = (SocialPartData)mData.social.clone(); } else { this.social = null; nullObjError("social"); } if (mData.gbag != null) { this.gbag = (GBagPartData)mData.gbag.clone(); } else { this.gbag = null; nullObjError("gbag"); } if (mData.mail != null) { this.mail = (MailPartData)mData.mail.clone(); } else { this.mail = null; nullObjError("mail"); } if (mData.quest != null) { this.quest = (QuestPartData)mData.quest.clone(); } else { this.quest = null; nullObjError("quest"); } if (mData.guide != null) { this.guide = (GuidePartData)mData.guide.clone(); } else { this.guide = null; nullObjError("guide"); } if (mData.gfriend != null) { this.gfriend = (GFriendPartData)mData.gfriend.clone(); } else { this.gfriend = null; nullObjError("gfriend"); } if (mData.gunion != null) { this.gunion = (GUnionPartData)mData.gunion.clone(); } else { this.gunion = null; nullObjError("gunion"); } if (mData.gteam != null) { this.gteam = (GTeamPartData)mData.gteam.clone(); } else { this.gteam = null; nullObjError("gteam"); } }