NWengine 0.9
|
The base class for scriptable components. More...
#include <Script.h>
Public Member Functions | |
Scriptable (GameObject *goc=nullptr, void *nws=nullptr) | |
Constructs a Scriptable object. | |
virtual void | Start () |
Called when the script is started. | |
virtual void | Update () |
Called every frame to update the script. | |
virtual void | Gui () |
Called to draw the script's GUI. | |
virtual void | ShaderCode (void *sprite) |
Called to generate shader code for the script. | |
virtual std::string | GetName () |
Gets the name of the script. | |
Public Attributes | |
GameObject * | goc = nullptr |
std::string | __nwname = "None" |
void * | nws = nullptr |
The base class for scriptable components.
|
inline |
Constructs a Scriptable object.
goc | The associated GameObject. |
nws | A pointer to additional script data. |
|
inlinevirtual |
Gets the name of the script.
Called to generate shader code for the script.
sprite | A pointer to the sprite data. |
Called when the script is started.
Virtual destructor.
std::string Scriptable::__nwname = "None" |
The name of the script.
GameObject* Scriptable::goc = nullptr |
The associated GameObject.