Skip to content

Economy – Internal – Adapters

⚠️ Internal implementation details – not supported public API

Namespace root: RevGaming.RevFramework.Economy.Internal.Adapters
Folder: Runtime/Systems/Economy/Internal/Adapters/

This folder contains the concrete adapter implementations that wire Economy abstractions to backing systems. These types are not extension points and may change, move, or be replaced without notice.

If you are looking for “how to use Economy”, start with: - RevGaming.RevFramework.Economy.Abstractions (interfaces) - EconomyBootstrap (facade wiring) - RevGaming.RevFramework.Economy (model + results + reasons)

Public-facing behaviour docs live here: - Runtime/Systems/Economy/Adapters/ (MkDocs Adapters section)


Subfolders

Currency

Internal/Adapters/Currency/

Concrete implementations that adapt the Currency module (ICurrencyService, CurrencyPolicy) into IValueLedger.

See: Internal – Adapters – Currency (this folder).

Inventory

Internal/Adapters/Inventory/

Concrete implementations that adapt the Inventory module (IInventoryService) into IItemStore.

See: Internal – Adapters – Inventory (this folder).


Maintenance rules (for future-us)

  • Keep adapter types internal and in Economy.Internal.Adapters.* namespaces.
  • Never expose adapter concrete types in public signatures (return interfaces only).
  • Prefer adding new behaviour by:
  • extending the backing module (Currency/Inventory), or
  • adding new adapter implementations behind the existing abstractions, not by adding public “helper” APIs here.
  • If you add a new adapter folder, also update the public Adapters docs to describe behaviour (without encouraging concrete-type use).