moo.sdk.output.room_info_payload
- moo.sdk.output.room_info_payload(room)
Build the IRE-style GMCP
Room.Infopayload forroom.Returns
{"num", "name", "exits"}with values stringified per the Achaea/Aardwolf/Mudlet-generic-mapper convention. Exit keys are normalized to short codes (n,ne,u, …); custom-named exits ("ladder","portal") round-trip unchanged so they still appear on the client.DjangoMOO names cardinal exits
"<direction> from <room>"— e.g."east from grand foyer"— to keep them globally unique. We check the exit’s exact name, then its first word, then its aliases for a direction match before falling back to the raw name.- Parameters:
room – an Object representing a room
- Return type:
dict- Returns:
a dict suitable for
send_gmcp(player, "Room.Info", payload)