7 Commits

Author SHA1 Message Date
octacian
ca6beff464
Move clear, shutdown, and reboot to OS
* Add `system.shutdown()`
* Add `system.reboot()`
* Add `clear` command
* Add `shutdown [-r]` command
2018-11-24 22:45:30 -08:00
octacian
12415cc700
Replace input, output, and output_editable APIs for system.* keys
* [set/get]_input -> system.input (string)
* [set/get]_output -> system.output (string)
* set_output_editable -> system.output_editable (bool)
2018-11-24 21:25:27 -08:00
octacian
0326648b0d
Replace OS APIs in favour of a system table
`get_os` and `set_os` APIs are replaced with a `system` table which 
stores the data and limits the valid keys and types via metatables.
2018-07-23 18:39:42 -07:00
octacian
31d4360570
Preserve RAM across MT restarts via metadata
RAM is still accessible with the RAM table, however, as a metatable is
used to ensure that whenever information is set in the RAM table it is
automatically stored in the metadata, and to ensure that functions and
userdata is not stored.
2018-07-23 18:29:44 -07:00
octacian
4c6884fd6f
Add debug console tab 2018-07-23 17:16:34 -07:00
octacian
327a6dd29e
Clean up custom environment definition
* Separate custom function definitions from make_env for better
readability
* Add newlines between functions
* Make comments more descriptive
* Move `Settings()` API to `fs.read_settings()`
2018-07-23 12:26:21 -07:00
octacian
642139b1b8
Split API into different files
* Move formspec APIs to gui.lua
* Move environment APIs to env.lua
* Move userdata and computer ID APIs to init.lua
2018-07-23 11:48:01 -07:00