đžConfig
Built-in Config library. (Scripts\Configs\{script_name}.ini)
Static Functions:
.IsEmpty
Config.IsEmpty()
: boolean
Returns true if there is no section/key.
.KeyExists
Config.KeyExists(section: string, key: string)
: boolean
section
string
-
key
string
-
Returns true if section & key exists otherwise false.
.GetAllSections
Config.GetAllSections()
: array[string]
Returns array of strings with all sections.
.GetAllKeys
Config.GetAllKeys(section: string)
: array[string]
section
string
-
Returns array of strings with all keys inside requested section.
.GetBoolean
Config.GetBoolean(section: string, key: string, default: boolean)
: boolean
section
string
-
key
string
-
default
boolean
-
.SetBoolean
Config.SetBoolean(section: string, key: string, value: boolean)
section
string
-
key
string
-
value
boolean
-
.GetInteger
Config.GetInteger(section: string, key: string, default: integer)
: integer
section
string
-
key
string
-
default
integer
-
.SetInteger
Config.SetInteger(section: string, key: string, value: integer)
section
string
-
key
string
-
value
integer
-
.GetHexadecimal
Config.GetHexadecimal(section: string, key: string, default: hexadecimal)
: hexadecimal
section
string
-
key
string
-
default
hexadecimal
-
.SetHexadecimal
Config.SetHexadecimal(section: string, key: string, value: hexadecimal)
section
string
-
key
string
-
value
hexadecimal
-
.GetFloat
Config.GetFloat(section: string, key: string, default: float)
: float
section
string
-
key
string
-
default
float
-
.SetFloat
Config.SetFloat(section: string, key: string, value: float)
section
string
-
key
string
-
value
float
-
.GetString
Config.GetString(section: string, key: string, default: string)
: string
section
string
-
key
string
-
default
string
-
.SetString
Config.SetString(section: string, key: string, value: string)
section
string
-
key
string
-
value
string
-
.Delete
Config.Delete(section: string, key: string)
: boolean
section
string
-
key
string
-
Returns true if key inside section was successfully deleted.
The section will be automatically deleted when there is no key left.
Last updated