Exemplo n.º 1
0
        private AllianceFBBoss ParseAllianceFBBoss(GM.DataCache.AlliancesFBBoss obj)
        {
            if (obj == null)
            {
                return(null);
            }
            AllianceFBBoss tp1 = new AllianceFBBoss();

            tp1.monsterId = obj.MonsterId;
            tp1.donate    = obj.Donate;
            tp1.challenge = obj.Challenge;
            tp1.Rewards   = ParseShowItem(obj.Reward);
            return(tp1);
        }
Exemplo n.º 2
0
        private bool InitAllianceFBBoss(GM.DataCache.ConditionAlliance tbl)
        {
            if (tbl == null)
            {
                EB.Debug.LogError("InitAllianceFBBoss:tbl is null");
                return(false);
            }

            mFBBossList = new List <AllianceFBBoss>();
            for (int i = 0; i < tbl.AllianceFbBossLength; i++)
            {
                AllianceFBBoss tpl = ParseAllianceFBBoss(tbl.GetAllianceFbBoss(i));
                if (tpl != null)
                {
                    mFBBossList.Add(tpl);
                }
            }

            return(true);
        }