Settings API
,
|
|||||||||
Remove all settings. | |||||||||
Syntax | settings.clear() | ||||||||
Returns | nil | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | settings | ||||||||
|
,
|
|||||||||||
Returns the value of a setting. | |||||||||||
Syntax | settings.copy(
|
||||||||||
Returns | any value | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | settings | ||||||||||
|
,
|
|||||||||||
Returns the value of a setting. If the setting doesn't exists, the second argument will be returned. | |||||||||||
Syntax | settings.get(
|
||||||||||
Returns | any value | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | settings | ||||||||||
|
|
|||||||||||
Get a list of all settings. | |||||||||||
Syntax | settings.getNames() | ||||||||||
Returns | table | ||||||||||
Part of | CC:Tweaked (source) | ||||||||||
API | settings | ||||||||||
|
,
|
|||||||||
Load the settings from a File. | |||||||||
Syntax | settings.load(
|
||||||||
Returns | boolean success | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | settings | ||||||||
|
,
|
|||||||||
Save the settings into a file. | |||||||||
Syntax | settings.save(
|
||||||||
Returns | boolean success | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | settings | ||||||||
|
,
|
|||||||||
Set the value of a setting. | |||||||||
Syntax | settings.set(
|
||||||||
Returns | nil | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | settings | ||||||||
|
,
|
|||||||||
Remove a specific setting. | |||||||||
Syntax | settings.unset(
|
||||||||
Returns | nil | ||||||||
Part of | CC:Tweaked (source) | ||||||||
API | settings | ||||||||
|
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.