private AllianceFBHurt ParseAllianceFBHurt(GM.DataCache.AlliancesFBHurt obj) { if (obj == null) { return(null); } AllianceFBHurt tp1 = new AllianceFBHurt(); tp1.id = obj.Id; tp1.hurt = obj.Hurt; tp1.monsterId = obj.BossId; tp1.Rewards = ParseShowItem(obj.Reward); return(tp1); }
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); }