Vixen
c7401864
csharp
public sealed class Currency

A currency with its names resolved.

Read the guide page for this →

Fields and properties (8)

  • public CurrencyDefinition Definition

    What it was compiled from.

  • public DefId Id

    Its id, which is also its ledger asset.

  • public string DisplayName

    What it is called.

  • public GameplayTag Tag

    What holding any of it is.

  • public long Cap

    The most anybody may hold, or zero.

  • public CurrencyScope Scope

    Whose pile it is.

  • public float DecayPerDay

    How much evaporates per day.

  • public ReadOnlySpan<CurrencyConversion> Conversions

    What 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