Paradise Station 13 - Modules - TypesVar Details - Proc Details

preferences

Vars

_2fa_status2FA status
active_characterThe current active character
character_savesList of all character saves we have. This is indexed based on the slot number
characters_loadedHave we loaded characters already?
successful_loadDid we load successfully?
volume_mixerVolume mixer, indexed by channel as TEXT (numerical indexes will not work). Volume goes from 0 to 100.
volume_mixer_savingThe volume mixer save timer handle. Used to debounce the DB call to save, to avoid spamming.

Procs

deserialize_volume_mixerReturns a volume mixer list from text, usually from the DB.
get_channel_volumeReturns a volume multiplier for the given channel, from 0 to 1 (default).
save_volume_mixerSaves [/datum/preferences/proc/volume_mixer] for the current client.
serialize_volume_mixerReturns a DB-friendly version of a volume mixer list.
set_channel_volumeChanges a channel's volume then queues it for DB save.

Var Details

_2fa_status

2FA status

active_character

The current active character

character_saves

List of all character saves we have. This is indexed based on the slot number

characters_loaded

Have we loaded characters already?

successful_load

Did we load successfully?

volume_mixer

Volume mixer, indexed by channel as TEXT (numerical indexes will not work). Volume goes from 0 to 100.

volume_mixer_saving

The volume mixer save timer handle. Used to debounce the DB call to save, to avoid spamming.

Proc Details

deserialize_volume_mixer

Returns a volume mixer list from text, usually from the DB.

Failure to deserialize will return the current value.

Arguments

get_channel_volume

Returns a volume multiplier for the given channel, from 0 to 1 (default).

Arguments:

save_volume_mixer

Saves [/datum/preferences/proc/volume_mixer] for the current client.

serialize_volume_mixer

Returns a DB-friendly version of a volume mixer list.

Arguments

set_channel_volume

Changes a channel's volume then queues it for DB save.

Arguments: