extensions
The extensions namespace is not actually a namespace that is accessible directly. Instead, this namespace is used, internally, to extend the functionality of Lua’s base types. (ie. boolean, coroutine, function, number, string, table, etc.)
coroutine Extensions
kill
Kills the current coroutine.
| Parameter Name | Type | Description |
|---|
| None. | | |
sleep
Yields the current coroutine, sleeping for the given delay of time.
| Parameter Name | Type | Description |
|---|
delay | number | The time delay to sleep for. |
sleepf
Yields the current coroutine, sleeping for the given delay of frames.
1coroutine.sleepf(delay);
| Parameter Name | Type | Description |
|---|
delay | number | The frame delay to sleep for. |
table Extensions
toliteral
Converts the given table of numbers (bytes) to a string literal.
1string table.toliteral(table);
| Parameter Name | Type | Description |
|---|
table | table | The table to convert to a string literal. |
| Returns |
|---|
| (string) The converted table to a string literal. |