e2 docs wirelink - wiremod/wire GitHub Wiki
Wirelink
=
:isHiSpeed()
Returns true if the linked component is high-speed capable (2 ops)
=
:entity()
Returns the entity of the linked component (2 ops)
=
:hasInput(
Portname)
Returns true if the linked component has an input of the specified name (2 ops)
=
:hasOutput(
Portname)
Returns true if the linked component has an output of the specified name (2 ops)
=
:array(
)
Returns the array from the specified address of linked component. Deprecated, use XWL[S,array] instead (5 ops)
:gtable(
)
Gtable = Returns the gtable from the specified address of linked component. Deprecated, use XWL[S,gtable] instead (5 ops)
=
:complex(
)
Returns the complex from the specified address of linked component. Deprecated, use XWL[S,complex] instead (5 ops)
=
:matrix2(
)
Returns the matrix2 from the specified address of linked component. Deprecated, use XWL[S,matrix2] instead (5 ops)
=
:table(
)
Returns the table from the specified address of linked component. Deprecated, use XWL[S,table] instead (5 ops)
=
:vector2(
)
Returns the vector2 from the specified address of linked component. Deprecated, use XWL[S,vector2] instead (5 ops)
=
:angle(
)
Returns the angle from the specified address of linked component. Deprecated, use XWL[S,angle] instead (5 ops)
=
:matrix(
)
Returns the matrix from the specified address of linked component. Deprecated, use XWL[S,matrix] instead (5 ops)
=
:matrix4(
)
Returns the matrix4 from the specified address of linked component. Deprecated, use XWL[S,matrix4] instead (5 ops)
=
:vector4(
)
Returns the vector4 from the specified address of linked component. Deprecated, use XWL[S,vector4] instead (5 ops)
:tracedata(
)
Tracedata = Returns the tracedata from the specified address of linked component. Deprecated, use XWL[S,tracedata] instead (5 ops)
=
:string(
)
Returns the string from the specified address of linked component. Deprecated, use XWL[S,string] instead (5 ops)
=
:wirelink(
)
Returns the wirelink from the specified address of linked component. Deprecated, use XWL[S,wirelink] instead (5 ops)
:effect(
)
Effect = Returns the effect from the specified address of linked component. Deprecated, use XWL[S,effect] instead (5 ops)
=
:ranger(
)
Returns the ranger from the specified address of linked component. Deprecated, use XWL[S,ranger] instead (5 ops)
=
:number(
)
Returns the number from the specified address of linked component. Deprecated, use XWL[S,number] instead (5 ops)
=
:bone(
)
Returns the bone from the specified address of linked component. Deprecated, use XWL[S,bone] instead (5 ops)
:stcontrol(
)
Stcontrol = Returns the stcontrol from the specified address of linked component. Deprecated, use XWL[S,stcontrol] instead (5 ops)
=
:quaternion(
)
Returns the quaternion from the specified address of linked component. Deprecated, use XWL[S,quaternion] instead (5 ops)
=
:vector(
)
Returns the vector from the specified address of linked component. Deprecated, use XWL[S,vector] instead (5 ops)
:ftrace(
)
Ftrace = Returns the ftrace from the specified address of linked component. Deprecated, use XWL[S,ftrace] instead (5 ops)
=
:entity(
)
Returns the entity from the specified address of linked component. Deprecated, use XWL[S,entity] instead (5 ops)
=
:setVector(
,
)
Sets the component's input of the specified name equal to specified vector. Deprecated, use XWL[S,vector] = X instead (5 ops)
=
:setAngle(
,
)
Sets the component's input of the specified name equal to specified angle. Deprecated, use XWL[S,angle] = X instead (5 ops)
:setGtable(
, Gtable)
Gtable = Sets the component's input of the specified name equal to specified gtable. Deprecated, use XWL[S,gtable] = X instead (5 ops)
=
:setEntity(
,
)
Sets the component's input of the specified name equal to specified entity. Deprecated, use XWL[S,entity] = X instead (5 ops)
=
:setArray(
,
)
Sets the component's input of the specified name equal to specified array. Deprecated, use XWL[S,array] = X instead (5 ops)
=
:setVector2(
,
)
Sets the component's input of the specified name equal to specified vector2. Deprecated, use XWL[S,vector2] = X instead (5 ops)
:setStcontrol(
, Stcontrol)
Stcontrol = Sets the component's input of the specified name equal to specified stcontrol. Deprecated, use XWL[S,stcontrol] = X instead (5 ops)
=
:setMatrix2(
,
)
Sets the component's input of the specified name equal to specified matrix2. Deprecated, use XWL[S,matrix2] = X instead (5 ops)
=
:setMatrix(
,
)
Sets the component's input of the specified name equal to specified matrix. Deprecated, use XWL[S,matrix] = X instead (5 ops)
:setFtrace(
, Ftrace)
Ftrace = Sets the component's input of the specified name equal to specified ftrace. Deprecated, use XWL[S,ftrace] = X instead (5 ops)
:setEffect(
, Effect)
Effect = Sets the component's input of the specified name equal to specified effect. Deprecated, use XWL[S,effect] = X instead (5 ops)
=
:setMatrix4(
,
)
Sets the component's input of the specified name equal to specified matrix4. Deprecated, use XWL[S,matrix4] = X instead (5 ops)
=
:setComplex(
,
)
Sets the component's input of the specified name equal to specified complex. Deprecated, use XWL[S,complex] = X instead (5 ops)
=
:setBone(
,
)
Sets the component's input of the specified name equal to specified bone. Deprecated, use XWL[S,bone] = X instead (5 ops)
:setTracedata(
, Tracedata)
Tracedata = Sets the component's input of the specified name equal to specified tracedata. Deprecated, use XWL[S,tracedata] = X instead (5 ops)
=
:setTable(
,
)
Sets the component's input of the specified name equal to specified table. Deprecated, use XWL[S,table] = X instead (5 ops)
=
:setQuaternion(
,
)
Sets the component's input of the specified name equal to specified quaternion. Deprecated, use XWL[S,quaternion] = X instead (5 ops)
=
:setVector4(
,
)
Sets the component's input of the specified name equal to specified vector4. Deprecated, use XWL[S,vector4] = X instead (5 ops)
=
:setNumber(
,
)
Sets the component's input of the specified name equal to specified number. Deprecated, use XWL[S,number] = X instead (5 ops)
=
:setWirelink(
,
)
Sets the component's input of the specified name equal to specified wirelink. Deprecated, use XWL[S,wirelink] = X instead (5 ops)
=
:setString(
,
)
Sets the component's input of the specified name equal to specified string. Deprecated, use XWL[S,string] = X instead (5 ops)
=
:setRanger(
,
)
Sets the component's input of the specified name equal to specified ranger. Deprecated, use XWL[S,ranger] = X instead (5 ops)
:setXyz(
Value)
Sets the X/Y/Z to the corresponding values in the vector (15 ops)
=
:xyz()
Retrieves the X/Y/Z as the corresponding values in the vector (15 ops)
= wirelink()
Returns wirelink to this E2 (5 ops)
= nowirelink()
Returns an invalid wirelink (1 ops)
=
:inputs()
Returns an array of all the inputs that XWL has without their types. Returns an empty array if it has none (15 ops)
=
:outputs()
Returns an array of all the outputs that XWL has without their types. Returns an empty array if it has none (15 ops)
=
:inputType(
Input)
Returns the type of input that S is in lowercase. ( "NORMAL" is changed to "number" ) (15 ops)
=
:outputType(
Output)
Returns the type of output that S is in lowercase. ( "NORMAL" is changed to "number" ) (15 ops)
=
:writeCell(
Address,
Value)
Writes value into specified memory cell. Deprecated, use XWL[N] = X instead (5 ops)
=
:readCell(
Address)
Returns contents of the specified memory cell. Deprecated, use XWL[N] instead (5 ops)
=
:readArray(
Start,
Size)
Reads an array's elements from a piece of memory. Strings and sub-tables (angles, vectors, matrices) are written as pointers to the actual data. Strings are written null-terminated (5 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeString(snnnv), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeString(snnnn), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeString(snnvn), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeString(snnvv), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeString(snnv), with an extra argument for background colour (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeString(snnv), with an extra argument for background colour. This is in the form of a 3-digit RGB code. 0 is black, while 999 is white, 900 is pure red and so on (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeString(snnn), with an extra argument for background colour (20 ops)
:writeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeString(snnn), with an extra argument for background colour. 3-digit RGB again (20 ops)
:writeString(
Text,
X,
Y,
Textcolor)
Same as XWL:writeString(snn), with an extra argument for the text colour (20 ops)
:writeString(
Text,
X,
Y,
Textcolor)
Same as XWL:writeString(snn), with an extra argument for the text colour. This is in the form of a 3-digit RGB code. 0 is black, while 999 is white, 900 is pure red and so on (20 ops)
:writeString(
Text,
X,
Y)
A helper function for using the Wired Console Screen. The string will be written to the screen in white text on black background. The number arguments specify the starting position - X/Horizontal (0-29 recommended) and Y/vertical (0-17) (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeUnicodeString(snnnv), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeUnicodeString(snnvv), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeUnicodeString(snnvn), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor,
Flash)
Same as XWL:writeUnicodeString(snnnn), with an extra argument for flashing text. 0 or 1 is recommended (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeUnicodeString(snnn), with an extra argument for background colour (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeUnicodeString(snnn), with an extra argument for background colour. 3-digit RGB again (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeUnicodeString(snnv), with an extra argument for background colour (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor,
Bgcolor)
Same as XWL:writeUnicodeString(snnv), with an extra argument for background colour. This is in the form of a 3-digit RGB code. 0 is black, while 999 is white, 900 is pure red and so on (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor)
Same as XWL:writeUnicodeString(snn), with an extra argument for the text colour (20 ops)
:writeUnicodeString(
Text,
X,
Y,
Textcolor)
Same as XWL:writeUnicodeString(snn), with an extra argument for the text colour. This is in the form of a 3-digit RGB code. 0 is black, while 999 is white, 900 is pure red and so on (20 ops)
:writeUnicodeString(
Text,
X,
Y)
A helper function for using the Wired Console Screen. The unicode string will be written to the screen in white text on black background. The number arguments specify the starting position - X/Horizontal (0-29 recommended) and Y/vertical (0-17) (20 ops)
=
:writeString(
Address,
Data)
Writes a null-terminated string to the given address. Returns the next free address or 0 on failure (20 ops)
=
:readString(
Address)
Reads a null-terminated string from the given address. Returns an empty string on failure (20 ops)
=
:writeArray(
Address,
Data)
Writes an array's elements into a piece of memory. Strings and sub-tables (angles, vectors, matrices) are written as pointers to the actual data. Strings are written null-terminated (20 ops)
=
:writeTable(
Address,
Data)
Same as writeArray, except it uses the numerically indexed variables of the table instead (20 ops)
=
:writeArraySimple(
Address,
Data)
(20 ops)
=
:writeTableSimple(
Address,
Data)
(20 ops)