mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 11:07:23 -04:00
Updated APIs (markdown)
parent
3efc9d9f1c
commit
9c64368a08
4
APIs.md
4
APIs.md
@ -5,7 +5,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 library is mostly unavailable, 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 non-standard APIs (including the ones below) before you use them, i.e. all modules not listed in the [Lua reference manual][lua-manual].
|
||||
For example, instead of simple going `local rs = component.redstone`, you now need to require the component API, like so:
|
||||
|
||||
```lua
|
||||
@ -41,4 +41,4 @@ The standard libraries aside, OpenComputers comes with a couple of additional, b
|
||||
- [[Unicode|API/Unicode]]: provides Unicode aware implementations of some functions in the string library.
|
||||
|
||||
|
||||
[lua-manual]: http://www.lua.org/manual/5.2/manual.html#3.1
|
||||
[lua-manual]: http://www.lua.org/manual/5.2/manual.html
|
Loading…
x
Reference in New Issue
Block a user