using System;
using System.Collections.Generic;
namespace KernelPanic.Meta
{
///
/// Stores per-banner counters that must persist between sessions.
///
[Serializable]
public sealed class GachaBannerState
{
public string bannerId;
public int totalPulls;
public int pityCounter;
public int fiveStarPityCounter;
public bool exhausted;
public bool featuredFiveStarGuaranteed;
public int fiveStarSelectorsClaimed;
public List guaranteedDistroIds = new();
public GachaBannerState()
{
}
public GachaBannerState(string bannerId)
{
this.bannerId = bannerId;
}
public void EnsureLists()
{
guaranteedDistroIds ??= new List();
}
}
/// Persistent, bounded receipt rendered by git log --pulls.
[Serializable]
public sealed class GachaPullHistoryEntry
{
public string pulledUtc;
public string bannerId;
public int currencySpent;
public int entropySpent;
public List rewards = new();
public void EnsureLists()
{
rewards ??= new List();
}
}
[Serializable]
public sealed class GachaPullHistoryRewardEntry
{
public int stars;
public string displayName;
public GachaRewardType rewardType;
public PullOutcomeKind outcomeKind;
public int duplicateValue;
public bool guaranteed;
public bool pityTriggered;
}
}