mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-14 09:46:53 -04:00
Updated API Robot (markdown)
parent
9dcb641e0a
commit
9d4cff25e1
@ -1,4 +1,4 @@
|
||||
This API abstracts the computer component of a robot to allow more intuitive interaction with it. This means it is really just a very thin wrapper. This API is only loaded when the computer is actually a robot. Note that it is still in the ROM file system for normal computers, it just isn't automatically loaded.
|
||||
This API abstracts the computer component of a robot to allow more intuitive interaction with it. This means it is really just a very thin wrapper. This API is only available when the computer is actually a robot.
|
||||
|
||||
- `robot.level(): number`
|
||||
Gets the current level of the robot, with the fractional part being the percentual progress towards the next level. For example, if this is `1.5`, then the robot is level one, and 50% towards achieving level two.
|
||||
|
Loading…
x
Reference in New Issue
Block a user