new wcNodeEntry(parent, pos)
The base class for all entry nodes. These are nodes that start script chains.
When inheriting, make sure to include 'this._super(parent, pos);' at the top of your init function.
Should be inherited and never constructed directly.
Parameters:
| Name | Type | Description |
|---|---|---|
parent |
string | The parent object of this node. |
pos |
wcPlay~Coordinates | The position of this node in the visual editor. |
- Source:
Methods
-
function classInit(className, type, category) -
Magic function that is called whenever any new class type is extended from this one. Handles initializing of the class as well as registering the new node type.
Parameters:
Name Type Description classNamestring The name of the class constructor. typestring The type name for the node. categorystring A category where this node will be grouped. - Source:
-
function onActivated(name) -
Overloading the default onActivated event handler so we can make it immediately trigger our Exit link. Overload this in inherited nodes, be sure to call 'this._super(..)' at the top.
Parameters:
Name Type Description namestring The name of the entry link triggered. - Source: