pipeworks_mud_mapper.services.state.actions_room
Room-related zone state transitions.
These helpers implement the mutations for add/update/delete/undo room actions. The logic mirrors the prior callback implementations, while returning a structured ZoneTransition result for the state manager.
Functions
|
Add a new room to the zone. |
|
Update an existing room's properties. |
|
Delete a room and collect undo metadata. |
|
Restore a deleted room from undo metadata. |
Module Contents
- pipeworks_mud_mapper.services.state.actions_room.add_room(*, zone_data, room_id, room_name, room_description, coord_x, coord_y, coord_z)[source]
Add a new room to the zone.
Returns a ZoneTransition with feedback when validation fails.
- pipeworks_mud_mapper.services.state.actions_room.update_room(*, zone_data, selected_room, room_name, room_description, coord_x, coord_y, coord_z)[source]
Update an existing room’s properties.