⚒️Config
Table to work with configs that are stored in the configs
folder with the .ini
extention.
configs
folder with the .ini
extention.ReadInt(config: string
, key: string
, def [?]
: integer
): integer
string
, key: string
, def [?]
: integer
): integer
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)
Read an integer from a config file.
ReadFloat(config: string
, key: string
, def [?]
: number
): number
string
, key: string
, def [?]
: number
): number
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)
Read a float from a config file.
ReadString(config: string
, key: string
, def [?]
: string
): string
string
, key: string
, def [?]
: string
): string
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: "")
Read a string from a config file.
WriteInt(config: string
, key: string
, value: integer
): nil
string
, key: string
, value: integer
): nil
config
string
The config file name.
key
string
The key to write.
value
integer
The value to write.
Write an integer to a config file.
WriteFloat(config: string
, key: string
, value: number
): nil
string
, key: string
, value: number
): nil
config
string
The config file name.
key
string
The key to write.
value
number
The value to write.
Write a float to a config file.
WriteString(config: string
, key: string
, value: string
): nil
string
, key: string
, value: string
): nil
config
string
The config file name.
key
string
The key to write.
value
string
The value to write.
Write a string to a config file.
Last updated