private bool InitShopTbl(GM.DataCache.ConditionShop tbl) { mShopTbl = new Dictionary <int, ShopTemplate>(tbl.ShopLength); for (int i = 0; i < tbl.ShopLength; ++i) { var tpl = ParseShop(tbl.GetShop(i)); if (mShopTbl.ContainsKey(tpl.id)) { EB.Debug.LogError("InitShopTbl: {0} exists", tpl.id); mShopTbl.Remove(tpl.id); } mShopTbl.Add(tpl.id, tpl); } return(true); }
private bool InitBossChallenge3Tbl(GM.DataCache.ConditionShop tbl) { mBossChallenge3Tbl = new Dictionary <int, BossChallengeTemplate>(tbl.Bosschallenge3Length); for (int i = 0; i < tbl.Bosschallenge3Length; ++i) { var tpl = ParseBossChallenge3Tbl(tbl.GetBosschallenge3(i)); if (mBossChallenge3Tbl.ContainsKey(tpl.id)) { EB.Debug.LogError("InitBossChallenge3Tbl: {0} exists", tpl.id); mBossChallenge3Tbl.Remove(tpl.id); } mBossChallenge3Tbl.Add(tpl.id, tpl); } return(true); }