⚒️Config
Last updated
Last updated
configs
folder with the .ini
extention.string
, key: string
, def [?]
: integer
): integer
Name | Type | Description |
---|---|---|
Read an integer from a config file.
string
, key: string
, def [?]
: number
): number
Name | Type | Description |
---|---|---|
Read a float from a config file.
string
, key: string
, def [?]
: string
): string
Name | Type | Description |
---|---|---|
Read a string from a config file.
string
, key: string
, value: integer
): nil
Write an integer to a config file.
string
, key: string
, value: number
): nil
Write a float to a config file.
string
, key: string
, value: string
): nil
Write a string to a config file.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
config
string
The config file name.
key
string
The key to read.
def [?]
integer
The default value to return if the key is not found. (default: 0)
config
string
The config file name.
key
string
The key to read.
def [?]
number
The default value to return if the key is not found. (default: 0.0)
config
string
The config file name.
key
string
The key to read.
def [?]
string
The default value to return if the key is not found. (default: "")
config
string
The config file name.
key
string
The key to write.
value
integer
The value to write.
config
string
The config file name.
key
string
The key to write.
value
number
The value to write.
config
string
The config file name.
key
string
The key to write.
value
string
The value to write.