Skip to content

📦 Policies

Defines authorable rules that influence runtime behaviour.

This folder contains data-driven configuration used to initialise or adjust inventory behaviour.


🎯 Purpose

Provide configurable defaults and behaviour through authorable assets.


🧩 What Lives Here

  • ContainerSizePolicy → defines initial slot counts per container name

⚠️ Important Notes

  • Policies are data-driven and do not contain runtime mutation logic
  • They influence behaviour but do not execute it
  • Systems may function without these assets

🧠 Usage Guidance

ContainerSizePolicy

Maps container names to initial slot counts.

Example:

"Backpack"  24
"Hotbar"    8

Behaviour:

  • matching is case-insensitive
  • keys are normalised before comparison
  • first matching entry is used
  • values are clamped to a minimum of 1

Applied during container creation by the inventory service.


🚫 Not for Production Use

This folder does not:

  • Implement container resizing logic
  • Define runtime mutation behaviour
  • Enforce authority
  • Handle persistence

  • ../
  • ../../