备份CatanBuilding瘦身独立工程
This commit is contained in:
54
Assets/Scripts/DataCenter/GeneralEventPackData.cs
Normal file
54
Assets/Scripts/DataCenter/GeneralEventPackData.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
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;
|
||||
#region rodSelection
|
||||
public int rodID;
|
||||
public int lastPackIDBought;
|
||||
public int packID;
|
||||
#endregion
|
||||
#region SelectionPack
|
||||
public List<int> 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<int> selections = null)
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
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; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user