GUInity
|
#include <ScriptComponent.hpp>
Public Member Functions | |
ScriptComponent () | |
virtual | ~ScriptComponent () |
virtual void | init () |
virtual void | destroy () |
virtual void | awake () override |
virtual void | tick (float deltaSecods) override |
virtual void | onCollision (Actor *actor) |
virtual void | onTrigger (Actor *actor) |
virtual shared_ptr< Component > | clone () override |
virtual shared_ptr< ComponentDescription > | getComponentDescription () override |
virtual void | deserialize (shared_ptr< ComponentDescription > desc) override |
![]() | |
Component () | |
virtual | ~Component () |
virtual void | setActive (bool isActive) |
shared_ptr< Actor > | getActor () |
void | setActor (weak_ptr< Actor > actor) |
Additional Inherited Members | |
![]() | |
void | setCopyMode (bool initWithData) |
![]() | |
bool | initWithData |
bool | isActive |
ScriptComponent is a Component that allows for Custom Behaviour. For example the controller of a space ship, a manager or anything that needs its own specific rules.
ScriptComponent::ScriptComponent | ( | ) |
Default Constructor
|
virtual |
Default Destructor
|
inlineoverridevirtual |
Component awake override
Reimplemented from Component.
Reimplemented in ScaleTool, PlayerScript, MoveTool, RotateHandle, RotateTool, and IncreaseColliderScript.
|
overridevirtual |
Clones current component (Prototype Design Pattern)
Implements Component.
Reimplemented in PlayerScript.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Callback function called when a collision occurs
Reimplemented in PlayerScript.
|
inlinevirtual |
Callback function called when a trigger collision occurs
Reimplemented in PlayerScript.
|
inlineoverridevirtual |
Component tick override
[in] | deltaSeconds | last frame durations |
Reimplemented from Component.
Reimplemented in ScaleHandle, ScaleTool, PlayerScript, MoveHandle, RotateOverTime, AddForceScript, MoveTool, RotateHandle, EditorCameraControl, RotateTool, and IncreaseColliderScript.