|
NWengine 0.9
|
Represents an animator component that can be attached to a game object. More...
#include <Components.h>
Public Member Functions | |
| Animator (GameObject *attachedObj) | |
| void | Update () |
| Update the game component. | |
| void | SetGameObject (void *go) override |
| Set the GameObject associated with the game component. | |
| void * | GetGameObject () override |
| Get the GameObject associated with the game component. | |
Public Member Functions inherited from GameComponent | |
| virtual void | Start () |
| Start the game component. | |
| virtual | ~GameComponent () |
| Destructor for the game component. | |
Public Member Functions inherited from Serialized | |
| Serialized () | |
| Default constructor for Serialized class. | |
| virtual int | Serialize (std::fstream *data, int offset) |
| Serialize the object and write it to the file. | |
| virtual int | Deserialize (std::fstream *data, int offset) |
| Deserialize the object from the file. | |
Static Public Member Functions | |
| static std::string | GetType () |
Static Public Member Functions inherited from GameComponent | |
| static std::string | GetType () |
| Get the type of the game component. | |
Public Attributes | |
| GameObject * | attachedObj = nullptr |
| uint16 | currentFrame = 0 |
| bool | isActive = 1 |
| Animation | animation |
Represents an animator component that can be attached to a game object.
|
overridevirtual |
Get the GameObject associated with the game component.
Reimplemented from GameComponent.
Set the GameObject associated with the game component.
| go | The GameObject to set. |
Reimplemented from GameComponent.
|
virtual |
Update the game component.
Reimplemented from GameComponent.