Module veloren_server::wiring

source ·

Structs§

  • Connects input to output elements. Required for elements to receive outputs from the proper inputs.
  • Represents a logical operation based on a left and right input. The available kinds of logical operations are enumerated by LogicKind.
  • Holds an input and output node.
  • Represents a node in the circuit. Each node is an entity with a name.
  • 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.
  • 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§

  • Logical operations applied to two floats.
  • 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.
  • Effects of a circuit in the game world.