24 lines
836 B
C#
24 lines
836 B
C#
using System.Collections.Generic;
|
|
using Activity;
|
|
using cfg;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace Capsule.Pack.Manager
|
|
{
|
|
public class CapsulePackData:AEventData
|
|
{
|
|
public int CurrentRoundCount;
|
|
private List<int> _currentProgress;
|
|
public List<int> CurrentProgress => _currentProgress ??= new List<int>();
|
|
public override void RefreshCache()
|
|
{
|
|
base.RefreshCache();
|
|
CurrentProgress?.Clear();
|
|
}
|
|
[JsonIgnore] public int CurrentProgressCount => CurrentProgress?.Count ?? 0;
|
|
[JsonIgnore]
|
|
public EventToyMachineMain MainConfig => Tables.TbEventToyMachineMain.GetOrDefault(FishingEvent?.RedirectID ?? 0);
|
|
[JsonIgnore]
|
|
public override bool IsActive =>base.IsActive&& CurrentRoundCount < MainConfig.PackManagerID.Count;
|
|
}
|
|
} |