Class: wcNodeStorage

wcNodeStorage


new wcNodeStorage(parent, pos)

The base class for all storage nodes. These are nodes designed solely for managing data.
When inheriting, make sure to include 'this._super(parent, pos);' at the top of your init function.
Also when inheriting, a 'value' property MUST be created as the storage value.

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
className string The name of the class constructor.
type string The type name for the node.
category string A category where this node will be grouped.
Source:

function onStart()

Event that is called as soon as the Play script has started.
Overload this in inherited nodes, be sure to call 'this._super(..)' at the top.

Source: