"""World interface — engine-agnostic adapter pattern for embodied agents.

Provides the ``WorldInterface`` ABC and an adapter registry so Timmy can
observe, act, and speak in any game world (Morrowind, Luanti, Godot, …)
through a single contract.

Quick start::

    from infrastructure.world import get_adapter, register_adapter
    from infrastructure.world.interface import WorldInterface

    register_adapter("mock", MockWorldAdapter)
    world = get_adapter("mock")
    perception = world.observe()
"""

from infrastructure.world.registry import AdapterRegistry

_registry = AdapterRegistry()

register_adapter = _registry.register
get_adapter = _registry.get
list_adapters = _registry.list_adapters

__all__ = [
    "register_adapter",
    "get_adapter",
    "list_adapters",
]
