/tg/ Station 13 - Modules - TypesVar Details - Proc Details

hilbertshotel

Vars

conservated_roomsList of "frozen" rooms.
default_templateName of the first template in the list - used as default
room_dataList of active rooms with their data.
user_dataList of ckey-based user preferences

Procs

conservate_room"Reserves" the room when the last guest leaves it. Creates an abstract storage object and forceMoves all the contents into it, deleting the reservation afterwards.
send_to_new_roomCreates a new room. Loads the room template and sends the user there. Requires room_number and chosen_room to be set.
try_join_active_roomAttempts to join an existing active room. Returns TRUE if successful, FALSE otherwise. Requires room_number to be set.
try_join_conservated_roomAttempts to recreate and join an existing stored room. Returns TRUE if successful, FALSE otherwise. Requires room_number to be set.

Var Details

conservated_rooms

List of "frozen" rooms.

default_template

Name of the first template in the list - used as default

room_data

List of active rooms with their data.

user_data

List of ckey-based user preferences

Proc Details

conservate_room

"Reserves" the room when the last guest leaves it. Creates an abstract storage object and forceMoves all the contents into it, deleting the reservation afterwards.

send_to_new_room

Creates a new room. Loads the room template and sends the user there. Requires room_number and chosen_room to be set.

try_join_active_room

Attempts to join an existing active room. Returns TRUE if successful, FALSE otherwise. Requires room_number to be set.

try_join_conservated_room

Attempts to recreate and join an existing stored room. Returns TRUE if successful, FALSE otherwise. Requires room_number to be set.