csharp
public sealed class CurrencyA currency with its names resolved.
Fields and properties (8)
public CurrencyDefinition DefinitionWhat it was compiled from.
public DefId IdIts id, which is also its ledger asset.
public string DisplayNameWhat it is called.
public GameplayTag TagWhat holding any of it is.
public long CapThe most anybody may hold, or zero.
public CurrencyScope ScopeWhose pile it is.
public float DecayPerDayHow much evaporates per day.
public ReadOnlySpan<CurrencyConversion> ConversionsWhat it turns into.
Methods (3)
public (long Fits, long Overflow) Fit(long held, long gain)How much of a gain actually fits.
public CurrencyExchange Convert(long amount, DefId to)What converting some of it would do.
public long Decay(long held, float days)How much is left after some days of decay.
Used by (2)
- CurrencyTestsVixen.Gameplay.Economy.Tests
- EconomyLibraryVixen.Gameplay.Economy