Basic Concepts - MatLomax/WireMod GitHub Wiki
Introduction
All logic gates, sensors, mathematical operators etc. are collectively referred to as Devices
.
Similar to the vanilla game's Grand Design
, all functionality is granted by the Electronics Manual
item, which consumes one Microchip
item from the player inventory for each device placed.
Electronics Manual
, crafted from1x Book
and50x Wire
at a Tinkerer's Workbench.Microchip
, crafted from1x Wire
,1x Actuator
and1x Copper Coin
at any Workbench.
Equipping and holding the Electronics Manual
will open the devices menu UI and show all placed devices and wires.
Placed devices do not interact with world tiles, so, much like with wires and actuators, devices can be placed anywhere with no restriction.
Pins
Each device has any number of Pins
, which are colour-coded as such:
Colour | Meaning |
---|---|
Yellow | Input |
Blue | Output |
Green | Filter |
Each Input
pin can be connected to only one Output
pin, whereas an Output
pin can be connected to any number of Input
pins.
Pins have a Data Type
, which dictates what other kinds of pins it can connect to.
At present, pins can only be connected to other pins of the same data type.
Wires
Pins are connected together with Wires
, but these are different from the pre-existing wires included in the Vanilla game.
Wires are colour-coded by data type, as such:
Colour | Meaning |
---|---|
White | No data |
Red | Boolean (false) |
Green | Boolean (true) |
Yellow | Integer |
Blue | String |
Connecting Wires
To wire two devices together, select the Wiring Tool
from the menu.
Left Click on a pin to start connecting.
While connecting:
- Right Click an empty space to cancel
- Left Click an empty space to set a wire corner point
- Left Click another pin to finish connecting