config_entry ![code/controllers/configuration/config_entry.dm 1](git.png)
Vars | |
abstract_type | Do not instantiate if type matches this |
---|---|
config_entry_value | The configured value for this entry. This shouldn't be initialized in code, instead set default |
default | Read-only default value for this config entry, used for resetting value to defaults when necessary. This is what config_entry_value is initially set to |
default_protection | Stores the original protection configuration, used for set_default() |
deprecated_by | The config name of a configuration type that depricates this, if it exists |
dupes_allowed | Controls if error is thrown when duplicate configuration values for this entry type are encountered |
modified | Set to TRUE if the default has been overridden by a config entry |
name | Read-only, this is determined by the last portion of the derived entry type |
protection | The /datum/config_entry type that supersedes this one |
resident_file | The file which this was loaded from, if any |
vv_VAS | Force validate and set on VV. VAS proccall guard will run regardless. |
Procs | |
set_default | Returns the value of the configuration datum to its default, used for resetting a config value. Note this also sets the protection back to default. |
Var Details
abstract_type ![code/controllers/configuration/config_entry.dm 17](git.png)
Do not instantiate if type matches this
config_entry_value ![code/controllers/configuration/config_entry.dm 5](git.png)
The configured value for this entry. This shouldn't be initialized in code, instead set default
default ![code/controllers/configuration/config_entry.dm 7](git.png)
Read-only default value for this config entry, used for resetting value to defaults when necessary. This is what config_entry_value is initially set to
default_protection ![code/controllers/configuration/config_entry.dm 25](git.png)
Stores the original protection configuration, used for set_default()
deprecated_by ![code/controllers/configuration/config_entry.dm 13](git.png)
The config name of a configuration type that depricates this, if it exists
dupes_allowed ![code/controllers/configuration/config_entry.dm 21](git.png)
Controls if error is thrown when duplicate configuration values for this entry type are encountered
modified ![code/controllers/configuration/config_entry.dm 11](git.png)
Set to TRUE if the default has been overridden by a config entry
name ![code/controllers/configuration/config_entry.dm 3](git.png)
Read-only, this is determined by the last portion of the derived entry type
protection ![code/controllers/configuration/config_entry.dm 15](git.png)
The /datum/config_entry type that supersedes this one
resident_file ![code/controllers/configuration/config_entry.dm 9](git.png)
The file which this was loaded from, if any
vv_VAS ![code/controllers/configuration/config_entry.dm 19](git.png)
Force validate and set on VV. VAS proccall guard will run regardless.
Proc Details
set_default
Returns the value of the configuration datum to its default, used for resetting a config value. Note this also sets the protection back to default.