Daedalus Dock - Modules - TypesVar Details - Proc Details

id_access

Vars

access_groupsDictionary of access groups. Keys are typepaths. Values are instances.
centcom_job_templatesHelper list containing all template paths that can be used as Centcom templates.
desc_by_accessDictionary of access names. Keys are access levels. Values are their associated names.
static_pincodesDatabase of referenceable pincodes (Usually door codes.)
station_groupsHelper list containing all station groups.
station_job_templatesHelper list containing all template paths that can be used as job templates. Intended to be used alongside logic for ACCESS_CHANGE_IDS. Grab templates from sub_department_managers_tgui for Head of Staff restrictions.
station_pda_templatesHelper list containing all PDA paths that can be painted by station machines. Intended to be used alongside logic for ACCESS_CHANGE_IDS. Grab templates from sub_department_managers_tgui for Head of Staff restrictions.
sub_department_managers_tguiList of accesses for the Heads of each sub-department alongside the regions they control and their job name.
template_singletons_by_pathDictionary of template singletons. Keys are paths. Values are their associated singletons.
tgui_access_groupsSpecially formatted list for sending access levels to tgui interfaces.

Procs

apply_template_access_to_cardAdds the accesses associated with a template to an ID card.
apply_template_to_cardApplies a template singleton to a card.
apply_template_to_chameleon_card
get_access_descReturns the access description associated with any given access level.
get_access_for_groupReturns the list of all accesses associated with any given access group.
get_static_pincodeGet a global pin code, generates it if it doesn't already exist. Uses the passed length only if generating.
refresh_job_template_singletonsCalled by [/datum/controller/subsystem/ticker/proc/setup]
remove_template_from_cardRemoves a template from an ID card. Also removes all accesses from it too.
remove_template_from_chameleon_cardRemoves a template from a chameleon ID card.
setup_access_descriptionsSetup dictionary that converts access levels to text descriptions.
setup_access_groupsInitialize access groups.
setup_template_singletonsInstantiate template singletons and add them to a list.
setup_tgui_listsCreates various data structures that primarily get fed to tgui interfaces, although these lists are used in other places.
tally_accessTallies up all accesses the card has that have flags greater than or equal to the access_flag supplied.

Var Details

access_groups

Dictionary of access groups. Keys are typepaths. Values are instances.

centcom_job_templates

Helper list containing all template paths that can be used as Centcom templates.

desc_by_access

Dictionary of access names. Keys are access levels. Values are their associated names.

static_pincodes

Database of referenceable pincodes (Usually door codes.)

station_groups

Helper list containing all station groups.

station_job_templates

Helper list containing all template paths that can be used as job templates. Intended to be used alongside logic for ACCESS_CHANGE_IDS. Grab templates from sub_department_managers_tgui for Head of Staff restrictions.

station_pda_templates

Helper list containing all PDA paths that can be painted by station machines. Intended to be used alongside logic for ACCESS_CHANGE_IDS. Grab templates from sub_department_managers_tgui for Head of Staff restrictions.

sub_department_managers_tgui

List of accesses for the Heads of each sub-department alongside the regions they control and their job name.

template_singletons_by_path

Dictionary of template singletons. Keys are paths. Values are their associated singletons.

tgui_access_groups

Specially formatted list for sending access levels to tgui interfaces.

Proc Details

apply_template_access_to_card

Adds the accesses associated with a template to an ID card.

Clears the card's existing access levels first. Primarily intended for applying template templates to cards.

Arguments:

apply_template_to_card

Applies a template singleton to a card.

Arguments:

apply_template_to_chameleon_card

get_access_desc

Returns the access description associated with any given access level.

In proc form due to accesses being stored in the list as text instead of numbers. Arguments:

get_access_for_group

Returns the list of all accesses associated with any given access group.

Arguments:

get_static_pincode

Get a global pin code, generates it if it doesn't already exist. Uses the passed length only if generating.

refresh_job_template_singletons

Called by [/datum/controller/subsystem/ticker/proc/setup]

This runs through every /datum/access_template/job singleton and ensures that its access is setup according to appropriate config entries.

remove_template_from_card

Removes a template from an ID card. Also removes all accesses from it too.

Arguments:

remove_template_from_chameleon_card

Removes a template from a chameleon ID card.

Arguments:

setup_access_descriptions

Setup dictionary that converts access levels to text descriptions.

setup_access_groups

Initialize access groups.

setup_template_singletons

Instantiate template singletons and add them to a list.

setup_tgui_lists

Creates various data structures that primarily get fed to tgui interfaces, although these lists are used in other places.

tally_access

Tallies up all accesses the card has that have flags greater than or equal to the access_flag supplied.

Returns the number of accesses that are in the given access group. Arguments: