Files
MinFt/Client/Assets/Scripts/DataCenter/GeneralEventPackData.cs
Liubing\LB 3d8d4d18f3 first commit
先修复一下,错误的场景

删除不必要的钓场资产

修复into场景

update:更新meta文件,修复报错

update:修复资源

修复第一章节建造

修复建造第三章

update:删除多余内容

update:更新README.md

update:还原图标

update:更新README

update:更新配置
2026-04-28 02:17:22 +08:00

58 lines
1.8 KiB
C#

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<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, 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; }
}