Vixen
c7401864
csharp
public readonly record struct TradeRecord

One sale, as a price model sees it.

Read the guide page for this →

Remarks

⚠ A unit price, not a total. Recording totals makes a stack of a hundred look like a hundred-fold price rise, and an average over a mixture of stack sizes is then a number about nothing.

Fields and properties (4)

  • public DefId Asset

    What.

  • public long UnitPrice

    What one went for.

  • public long Count

    How many, which is how much the sale is worth as evidence.

  • public float At

    When, on the caller's clock.

Methods (1)

  • public TradeRecord(DefId Asset, long UnitPrice, long Count, float At)

    One sale, as a price model sees it.

Used by (2)

  • IMarketModelVixen.Gameplay.Economy
  • MovingAverageMarketVixen.Gameplay.Economy