private bool InitActicketTbl(GM.DataCache.ConditionResource actickets) { if (actickets == null) { EB.Debug.LogError("InitActicketTbl: actickets is null"); } mActicketTbl = new BuyActicketTemplate[actickets.ActicketLength]; for (int i = 0; i < mActicketTbl.Length; i++) { mActicketTbl[i] = ParseActicketTemplate(actickets.GetActicket(i)); } return(true); }
private bool InitBuddyExpTbl(GM.DataCache.ConditionResource buddyExps) { if (buddyExps == null) { EB.Debug.LogError("InitBuddyExpTbl: buddyExps is null"); return(false); } mButtyExpTbl = new List <BuyButtyExpTemplate>(); for (int i = 0; i < buddyExps.BuddyExpLength; ++i) { mButtyExpTbl.Add(ParseBuddyExpTemplate(buddyExps.GetBuddyExp(i))); } return(true); }
private bool InitActionPowerTbl(GM.DataCache.ConditionResource actionPowers) { if (actionPowers == null) { EB.Debug.LogError("InitActionPowerTbl: actionPowers is null"); return(false); } mActionPowerTbl = new List <BuyActionPowerTemplate>(); for (int i = 0; i < actionPowers.ActionPowerLength; ++i) { mActionPowerTbl.Add(ParseActionPowerTemplate(actionPowers.GetActionPower(i))); } return(true); }
private bool InitGoldTbl(GM.DataCache.ConditionResource golds) { if (golds == null) { EB.Debug.LogError("InitGoldTbl: golds is null"); return(false); } mGoldTbl = new BuyGoldTemplate[golds.GoldLength]; for (int i = 0; i < mGoldTbl.Length; ++i) { mGoldTbl[i] = ParseGoldTemplate(golds.GetGold(i)); } System.Array.Sort(mGoldTbl, BuyGoldTemplate.Comparer); return(true); }
private bool InitVigorTbl(GM.DataCache.ConditionResource vigors) { if (vigors == null) { EB.Debug.LogError("InitVigorTbl: vigors is null"); return(false); } mVigorTbl = new BuyVigorTemplate[vigors.VigorLength]; for (int i = 0; i < mVigorTbl.Length; ++i) { mVigorTbl[i] = ParseVigorTemplate(vigors.GetVigor(i)); } System.Array.Sort(mVigorTbl, BuyVigorTemplate.Comparer); return(true); }