Vixen
c7401864
csharp
public sealed class TradeOffer

What one side is putting up.

Read the guide page for this →

Fields and properties (4)

  • public PlayerId Owner

    Whose it is.

  • public int Count

    How many distinct things are on the table.

  • public bool IsEmpty

    Whether there is nothing on it.

  • public IEnumerable<(DefId Asset, long Amount)> Assets

    What is on it, in asset order so two servers describe it the same way.

Methods (1)

  • public long AmountOf(DefId asset)

    How much of something is on it.

Used by (2)

  • TradeSessionVixen.Gameplay.Economy
  • TradeTestsVixen.Gameplay.Economy.Tests