HatchitGame
Public Member Functions | Protected Member Functions | List of all members
Hatchit::Game::AudioListener Class Reference
Inheritance diagram for Hatchit::Game::AudioListener:
Hatchit::Game::Component

Public Member Functions

virtual Core::JSON VSerialize () override
 
virtual bool VDeserialize (const Core::JSON &jsonObject) override
 
virtual void VOnInit () override
 Called when the GameObject is created to initialize all values.
 
virtual void VOnUpdate () override
 Called once per frame while the GameObject is enabled. More...
 
virtual void VOnDestroy () override
 Called when the GameObject is destroyed/deleted. More...
 
virtual ComponentVClone () const override
 Creates a copy of this Component. More...
 
virtual Core::Guid VGetComponentId () const override
 
- Public Member Functions inherited from Hatchit::Game::Component
 Component (const Component &rhs)=default
 
 Component (Component &&rhs)=default
 
Componentoperator= (const Component &rhs)=default
 
Componentoperator= (Component &&rhs)=default
 
GameObjectGetOwner (void)
 Getter which returns the GameObject to which this Component is attached. More...
 
bool GetEnabled (void)
 Getter that returns that value of m_enabled. More...
 
void SetEnabled (bool value)
 Setter that sets the value of m_enabled. More...
 
void SetOwner (GameObject *owner)
 Setter that sets which GameObject this Component is attached to. More...
 

Protected Member Functions

virtual void VOnEnabled () override
 Called when the Component is enabled. More...
 
virtual void VOnDisabled () override
 Called when the Component is disabled. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Hatchit::Game::Component
template<typename T >
static Core::Guid GetComponentId (void)
 Returns the unique id associated with a Component of type T. More...
 
- Protected Attributes inherited from Hatchit::Game::Component
bool m_enabled {true}
 bool indicating if this Component is enabled. More...
 
GameObjectm_owner
 The GameObject to which this Component is attached. More...
 

Member Function Documentation

Component * Hatchit::Game::AudioListener::VClone ( ) const
overridevirtual

Creates a copy of this Component.

This is used by GameObject to create a copy of a class extending Component without knowledge of its underlying type.

Implements Hatchit::Game::Component.

void Hatchit::Game::AudioListener::VOnDestroy ( )
overridevirtual

Called when the GameObject is destroyed/deleted.

Objects are always disabled before destroyed. When a scene is destroyed, all gameobjects are disabled before any are destroyed.

Implements Hatchit::Game::Component.

void Hatchit::Game::AudioListener::VOnDisabled ( )
overrideprotectedvirtual

Called when the Component is disabled.

Components are always disabled before destroyed. When a scene is destroyed, all Components are disabled before any are destroyed.

Implements Hatchit::Game::Component.

void Hatchit::Game::AudioListener::VOnEnabled ( )
overrideprotectedvirtual

Called when the Component is enabled.

This happens when a scene has finished loading, or immediately after creation if the scene is already loaded.

Implements Hatchit::Game::Component.

void Hatchit::Game::AudioListener::VOnUpdate ( )
overridevirtual

Called once per frame while the GameObject is enabled.

Updates all components first, then all child gameobjects.

Implements Hatchit::Game::Component.


The documentation for this class was generated from the following files: