pipeworks_mud_mapper.services.state.manager

Zone state manager entry point.

This module routes high-level zone actions to specialized handlers. Callbacks should use apply_zone_action as the single entrypoint for mutating current-zone-data.

Functions

apply_zone_action(zone_data, action)

Apply a zone action using the appropriate handler.

Module Contents

pipeworks_mud_mapper.services.state.manager.apply_zone_action(zone_data, action)[source]

Apply a zone action using the appropriate handler.

Parameters:
  • zone_data (dict | None) – Current zone data to mutate.

  • action (ZoneAction) – Action describing the desired mutation.

Returns:

The result of the action, including updated zone data and effects.

Return type:

ZoneTransition