public void Init() { LogicDataTable table = LogicDataTables.GetTable(LogicDataType.GEM_BUNDLE); for (int i = 0; i < table.GetItemCount(); i++) { LogicGemBundleData data = (LogicGemBundleData)table.GetItemAt(i); LogicOffer offer = new LogicOffer(new LogicBundleOfferData(data), this.m_level); this.m_offers.Add(offer); } // TODO: Implement this. }
public LogicBundleOfferData(LogicGemBundleData data) { this.m_offerId = data.GetGlobalID(); this.m_linkedPackageId = data.GetLinkedPackageId(); this.m_shopFrontPageCooldownAfterPurchaseSecs = data.GetShopFrontPageCooldownAfterPurchaseSeconds(); }