💾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

Argument
Type
Description

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]

Argument
Type
Description

section

string

-

Returns array of strings with all keys inside requested section.

.GetBoolean

Config.GetBoolean(section: string, key: string, default: boolean): boolean

Argument
Type
Description

section

string

-

key

string

-

default

boolean

-

.SetBoolean

Config.SetBoolean(section: string, key: string, value: boolean)

Argument
Type
Description

section

string

-

key

string

-

value

boolean

-

.GetInteger

Config.GetInteger(section: string, key: string, default: integer): integer

Argument
Type
Description

section

string

-

key

string

-

default

integer

-

.SetInteger

Config.SetInteger(section: string, key: string, value: integer)

Argument
Type
Description

section

string

-

key

string

-

value

integer

-

.GetHexadecimal

Config.GetHexadecimal(section: string, key: string, default: hexadecimal): hexadecimal

Argument
Type
Description

section

string

-

key

string

-

default

hexadecimal

-

.SetHexadecimal

Config.SetHexadecimal(section: string, key: string, value: hexadecimal)

Argument
Type
Description

section

string

-

key

string

-

value

hexadecimal

-

.GetFloat

Config.GetFloat(section: string, key: string, default: float): float

Argument
Type
Description

section

string

-

key

string

-

default

float

-

.SetFloat

Config.SetFloat(section: string, key: string, value: float)

Argument
Type
Description

section

string

-

key

string

-

value

float

-

.GetString

Config.GetString(section: string, key: string, default: string): string

Argument
Type
Description

section

string

-

key

string

-

default

string

-

.SetString

Config.SetString(section: string, key: string, value: string)

Argument
Type
Description

section

string

-

key

string

-

value

string

-

.Delete

Config.Delete(section: string, key: string): boolean

Argument
Type
Description

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