Exemplo n.º 1
0
        private bool InitAllianceDonateChest(GM.DataCache.ConditionAlliance tbl)
        {
            if (tbl == null)
            {
                EB.Debug.LogError("InitAllianceDonateChest:tbl is null");
                return(false);
            }

            if (mDonateChestList == null)
            {
                mDonateChestList = new List <AllianceDonateChest>();
            }
            else
            {
                mDonateChestList.Clear();
            }
            for (int i = 0; i < tbl.DonateChestLength; i++)
            {
                AllianceDonateChest tpl = ParseAllianceDonateChest(tbl.GetDonateChest(i));
                if (tpl != null)
                {
                    mDonateChestList.Add(tpl);
                }
            }
            return(true);
        }
Exemplo n.º 2
0
        private bool InitAllianceTechSkill(GM.DataCache.ConditionAlliance tbl)
        {
            if (tbl == null)
            {
                EB.Debug.LogError("InitAllianceTechSkill:tbl is null");
                return(false);
            }

            if (mTechSkillList == null)
            {
                mTechSkillList = new List <AllianceTechSkill>();
            }
            else
            {
                mTechSkillList.Clear();
            }
            for (int i = 0; i < tbl.TechSkillLength; i++)
            {
                AllianceTechSkill tpl = ParseAllianceTechSkill(tbl.GetTechSkill(i));
                if (tpl != null)
                {
                    List <AllianceTechSkillUpLevel> data = GetTechSkillUpLevelListById(tpl.skillid);
                    if (data != null)
                    {
                        tpl.levelinfo = data;
                    }
                    mTechSkillList.Add(tpl);
                }
            }
            return(true);
        }
Exemplo n.º 3
0
        private bool InitAllianceTechSkillUpLevel(GM.DataCache.ConditionAlliance tbl)
        {
            if (tbl == null)
            {
                EB.Debug.LogError("InitAllianceTechSkillUpLevel:tbl is null");
                return(false);
            }

            if (mTechSkillUpLevelList == null)
            {
                mTechSkillUpLevelList = new List <AllianceTechSkillUpLevel>();
            }
            else
            {
                mTechSkillUpLevelList.Clear();
            }
            for (int i = 0; i < tbl.TechSkillLevelUpLength; i++)
            {
                AllianceTechSkillUpLevel data = ParseAllianceSkillUplevel(tbl.GetTechSkillLevelUp(i));
                if (data != null)
                {
                    mTechSkillUpLevelList.Add(data);
                }
            }
            return(true);
        }
Exemplo n.º 4
0
        private bool InitAllianceWarConfig(GM.DataCache.ConditionAlliance tbl)
        {
            if (tbl == null)
            {
                EB.Debug.LogError("InitAllianceWarReward:tbl is null");
                return(false);
            }

            mWarConfigList = new List <AllianceWarConfig>();
            for (int i = 0; i < tbl.AllianceWarConfigLength; i++)
            {
                AllianceWarConfig tpl = ParseWarConfigInfo(tbl.GetAllianceWarConfig(i));
                if (tpl != null)
                {
                    mWarConfigList.Add(tpl);
                }
            }

            return(true);
        }
Exemplo n.º 5
0
        private bool InitAllianceFBHurt(GM.DataCache.ConditionAlliance tbl)
        {
            if (tbl == null)
            {
                EB.Debug.LogError("InitAllianceFBHurt:tbl is null");
                return(false);
            }

            mFBHurtList = new List <AllianceFBHurt>();
            for (int i = 0; i < tbl.AllianceFbHurtLength; i++)
            {
                AllianceFBHurt tpl = ParseAllianceFBHurt(tbl.GetAllianceFbHurt(i));
                if (tpl != null)
                {
                    mFBHurtList.Add(tpl);
                }
            }

            return(true);
        }