Library wire

Wire library. Handles wire inputs/outputs, wirelinks, etc.

Functions

adjustInputs (names, types) Creates/Modifies wire inputs.
adjustOutputs (names, types) Creates/Modifies wire outputs.
create (entI, entO, inputname, outputname) Wires two entities together
delete (entI, inputname) Unwires an entity's input
getInputs (entI) Returns a table of entity's inputs
getOutputs (entO) Returns a table of entity's outputs
self () Returns the wirelink representing this entity.

Tables

ports Ports table.


Functions

wire_library.adjustInputs (names, types)
Creates/Modifies wire inputs. All wire ports must begin with an uppercase letter and contain only alphabetical characters.

Parameters:

  • names: An array of input names. May be modified by the function.
  • types: An array of input types. May be modified by the function.
wire_library.adjustOutputs (names, types)
Creates/Modifies wire outputs. All wire ports must begin with an uppercase letter and contain only alphabetical characters.

Parameters:

  • names: An array of output names. May be modified by the function.
  • types: An array of output types. May be modified by the function.
wire_library.create (entI, entO, inputname, outputname)
Wires two entities together

Parameters:

  • entI: Entity with input
  • entO: Entity with output
  • inputname: Input to be wired
  • outputname: Output to be wired
wire_library.delete (entI, inputname)
Unwires an entity's input

Parameters:

  • entI: Entity with input
  • inputname: Input to be un-wired
wire_library.getInputs (entI)
Returns a table of entity's inputs

Parameters:

  • entI: Entity with input(s)

Return value:

    Table of entity's inputs
wire_library.getOutputs (entO)
Returns a table of entity's outputs

Parameters:

  • entO: Entity with output(s)

Return value:

    Table of entity's outputs
wire_library.self ()
Returns the wirelink representing this entity.

Tables

wire_library.ports
Ports table. Reads from this table will read from the wire input of the same name. Writes will write to the wire output of the same name.

Valid XHTML 1.0!