Jump to content

Mainboard Programmer: Difference between revisions

From Advanced Computers Wiki
No edit summary
No edit summary
 
Line 12: Line 12:
|<code>integer</code>
|<code>integer</code>
|READ
|READ
|A unique numeric ID representing this peripheral device, generated on block placement and persistent across restarts.
|A unique numeric ID tied to this peripheral device, generated on block placement and persistent across restarts.
|-
|-
| <code>containsMainboard</code> || <code>boolean</code> || READ || Returns whether a mainboard is located in the GUI slot. If this is false, most methods will throw an error.
| <code>containsMainboard</code> || <code>boolean</code> || READ || Returns whether a mainboard is located in the GUI slot. If this is false, most methods will throw an error.

Latest revision as of 02:08, 7 September 2026

Mainboard Programmer block
Mainboard Programmer block

Sometimes you may wish to modify a Mainboard that is not located in the current Computer. This is precisely the purpose of the Mainboard Programmer block. To modify a mainboard, simply put it into the block's GUI and run any of the component API methods below.

Provided component

This block provides the mainboardProgrammer component, offering the following properties:

MainboardProgrammerUD component properties
Name Type Read/Write Description
uniqueId integer READ A unique numeric ID tied to this peripheral device, generated on block placement and persistent across restarts.
containsMainboard boolean READ Returns whether a mainboard is located in the GUI slot. If this is false, most methods will throw an error.
MainboardProgrammerUD component methods
Name Type Description
:getMainboardTier() integer Returns the tier of the mainboard, ranging from 1 to 3.
:setUefiData(data:string) void Sets the executable UEFI data to the given string.
:getUefiData() string Returns the executable UEFI data.