csharp
public interface IEconomyLedgerWhere movements are recorded, and the only thing that decides whether they happened.
Remarks
⚠ Synchronous, unlike doc 27's ILedger, and that is deliberate. A realm's rule runs in a frame and cannot await a database; the realm's implementation of this either fronts the durable ledger with an in-memory view it reconciles, or refuses and retries. Making the gameplay-side call awaitable would put the frame's timing at the mercy of a round trip, which is the thing doc 27 built the lease epoch to avoid needing.
Methods (2)
EconomyResult Post(EconomyIntent intent)Records an intent, or says why not.
long Balance(EconomyAccount account, DefId asset)What an account holds of something.
Used by (6)
- AuctionHouseVixen.Gameplay.Economy
- LedgerBridgeVixen.Live.Gameplay
- MemoryEconomyLedgerVixen.Gameplay.Economy
- PostOfficeVixen.Gameplay.Economy
- TradeSessionVixen.Gameplay.Economy
- VendorStateVixen.Gameplay.Economy