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

security_level

Vars

available_levelsA list of initialised security level datums.
current_security_levelCurrently set security level

Procs

get_current_level_as_numberReturns the current security level as a number
get_current_level_as_textReturns the current security level as text
minimum_security_levelCalled to check/change security level. Checks if the station security level is at least minimum_level, and if not, sets it to that level. Arguments determine if engineering override or maint access is granted. Arguments: min_level: number, eng_access: boolean, maint_access: boolean
number_level_to_textConverts a number security level to a text
set_levelSets a new security level as our current level
text_level_to_numberConverts a text security level to a number

Var Details

available_levels

A list of initialised security level datums.

current_security_level

Currently set security level

Proc Details

get_current_level_as_number

Returns the current security level as a number

get_current_level_as_text

Returns the current security level as text

minimum_security_level

Called to check/change security level. Checks if the station security level is at least minimum_level, and if not, sets it to that level. Arguments determine if engineering override or maint access is granted. Arguments: min_level: number, eng_access: boolean, maint_access: boolean

number_level_to_text

Converts a number security level to a text

Arguments:

set_level

Sets a new security level as our current level

This is how everything should change the security level.

Arguments:

text_level_to_number

Converts a text security level to a number

Arguments: