mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-04 03:27:19 -04:00
Updated ComponentAccess (markdown)
parent
f893b19de8
commit
f33b81fcee
@ -22,7 +22,7 @@ Primary Components
|
|||||||
------------------
|
------------------
|
||||||
The [[component API|API/Component]] keeps track of one component of each type as a "primary" component. If there are multiple components of the same type, which one will be the primary component is random. You can access the primary component of a specific type via `component.xxx`, where `xxx` is the type. For example:
|
The [[component API|API/Component]] keeps track of one component of each type as a "primary" component. If there are multiple components of the same type, which one will be the primary component is random. You can access the primary component of a specific type via `component.xxx`, where `xxx` is the type. For example:
|
||||||
```
|
```
|
||||||
lua> component.gpu.address
|
lua> =component.gpu.address
|
||||||
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user