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

access_key

Vars

department_accessThe departmental access given to the key.

Procs

attempt_open_doorCalled when attempting to open an airlock. Checks if the keys have access, returns try_to_activate_door if it does, returns FALSE otherwise. Args: user - The person attempting to open the door airlock - The door we're attempting to open
clear_accessCalled when a keycard authenticator runs out of time Clears the department access and alerts nearby people of such.
department_access_givenCalled when a keycard authenticator sends region access Stores it on the key to use for access, then sets a timer to clear it. Args: source - the keycard authenticator giving us the access region_access - the list of access we're being sent, we only take the first entry in the list as there should only have one department at a time.

Var Details

department_access

The departmental access given to the key.

Proc Details

attempt_open_door

Called when attempting to open an airlock. Checks if the keys have access, returns try_to_activate_door if it does, returns FALSE otherwise. Args: user - The person attempting to open the door airlock - The door we're attempting to open

clear_access

Called when a keycard authenticator runs out of time Clears the department access and alerts nearby people of such.

department_access_given

Called when a keycard authenticator sends region access Stores it on the key to use for access, then sets a timer to clear it. Args: source - the keycard authenticator giving us the access region_access - the list of access we're being sent, we only take the first entry in the list as there should only have one department at a time.