Module wiring

Source

Structs§

Circuit
Connects input to output elements. Required for elements to receive outputs from the proper inputs.
Logic
Represents a logical operation based on a left and right input. The available kinds of logical operations are enumerated by LogicKind.
Wire
Holds an input and output node.
WireNode
Represents a node in the circuit. Each node is an entity with a name.
WiringAction
Determines what kind of output an element produces (or input is read) based on the formula. The threshold is the minimum computed output for effects to take place. Effects refer to effects in the game world such as emitting light.
WiringElement
The basic element of the wiring system. Inputs are dynamically added based on the outputs of other elements. Actions specify what to output or what inputs to read as well as what effects the values should have on the world state (eg. emit a projectile).

Enums§

LogicKind
Logical operations applied to two floats.
OutputFormula
Represents an output for a WiringAction. The total output can be constant, directly from an input, based on collision state, or based on custom logic.
WiringActionEffect
Effects of a circuit in the game world.