mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-04 03:27:19 -04:00
Updated APIs (markdown)
parent
496cd844ae
commit
abf28f7b03
2
APIs.md
2
APIs.md
@ -6,7 +6,7 @@ First and foremost you should get familiar with the [Lua reference manual][lua-m
|
|||||||
OpenComputers makes an effort to largely emulate the standard library in areas that would usually interact with the host system - that being the I/O library. There are a few differences, which you can look up here: [[differences in the standard libraries|NonstandardLuaLibs]]. Most notably, the debug and package libraries are not available, and `load` only accepts text source files, no binary / pre-compiled Lua programs (for security reasons).
|
OpenComputers makes an effort to largely emulate the standard library in areas that would usually interact with the host system - that being the I/O library. There are a few differences, which you can look up here: [[differences in the standard libraries|NonstandardLuaLibs]]. Most notably, the debug and package libraries are not available, and `load` only accepts text source files, no binary / pre-compiled Lua programs (for security reasons).
|
||||||
|
|
||||||
Note that you now need to require all APIs(including the ones below) before you use them.
|
Note that you now need to require all APIs(including the ones below) before you use them.
|
||||||
For example, instead of simple going "local rs = component.redstone", you now need to require the component API, like so:
|
For example, instead of simple going `local rs = component.redstone`, you now need to require the component API, like so:
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
local component = require("component")
|
local component = require("component")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user