using cfg; using System.Collections.Generic; public struct GeneralEventPackData { public int currentEventID; public int redirectID; public int VIPLvlWhenEventActivate; public int purchaseCount; public bool doNeedTrigger; public bool isTriggered; public int savingProgress; public int discountLvl; public int visualProgress; public int visualDiscountLvl; public float inflation; #region rodSelection public int rodID; public int lastPackIDBought; public int packID; #endregion #region SelectionPack public List selections; #endregion public GeneralEventPackData(int eventID = 0, int redirectID = 0, int vip = 0, int purchaseCount = 0, bool doNeedTrigger = false, bool isTriggered = false, int savingProgress = 0, int discountLvl = 0, int visualProgress = 0, int visualDiscountLvl = 0, int rodID = 0, int lastPackIDBought = 0, int packID = 0, List selections = null, float inflation = 0) { currentEventID = eventID; this.redirectID = redirectID; VIPLvlWhenEventActivate = vip; this.purchaseCount = purchaseCount; this.doNeedTrigger = doNeedTrigger; this.isTriggered = isTriggered; this.savingProgress = savingProgress; this.discountLvl = discountLvl; this.visualProgress = visualProgress; this.visualDiscountLvl = visualDiscountLvl; this.rodID = rodID; this.lastPackIDBought = lastPackIDBought; this.packID = packID; this.selections = selections; this.inflation = inflation; } } public interface IEventPackData { public void LoadData(string s); public void LoadData(GeneralEventPackData d); public bool UpdateData(FishingEvent e); public void SaveData(); public bool IsPackActivated { get; } }