API
EconomyConfig
The value type holding all tuning values. Override only the fields you need from EconomyConfig.Default.
Economy
The single entry point (facade) of the dynamic economy.
Construction
When autoTick is true, a hidden runner calls Tick every frame. Call Dispose() on shutdown.
Registration
Trading (inflation-neutral)
source / sink (causes inflation)
Queries
Tick
Each time accumulated time reaches TickInterval, runs a long tick (production → trade → price convergence → inflation update).
Events
TradeResult
The result of Buy/Sell. On failure it returns with Success == false instead of throwing.
Price formula
- Short multiplier: moves to the balance value by
ShortTermResponseon each trade - Long multiplier: converges symmetrically to the balance value by
PriceInertiaeach tick; short mean-reverts to long - Inflation multiplier: updated by net source/sink pressure — net creation < 1 (cheaper), net removal > 1 (pricier)