Tramway SDK
Public Member Functions | List of all members
tram::TemplateComponent Class Reference

#include <template.h>

Inheritance diagram for tram::TemplateComponent:
tram::EntityComponent

Public Member Functions

 TemplateComponent ()
 
 ~TemplateComponent ()
 
void Init ()
 Initializes an entity component. More...
 
void Start ()
 
void EventHandler (Event &event)
 
- Public Member Functions inherited from tram::EntityComponent
 EntityComponent ()=default
 
virtual ~EntityComponent ()=default
 
bool IsReady ()
 Returns the component's readiness. More...
 
bool IsInit ()
 Returns the component's init status. More...
 
EntityGetParent ()
 
void SetParent (Entity *parent)
 

Additional Inherited Members

- Protected Member Functions inherited from tram::EntityComponent
void ResourceReady ()
 Notifies the component of a streamed-in resource. More...
 
- Protected Attributes inherited from tram::EntityComponent
size_t resources_waiting = 0
 
bool is_ready = false
 
bool is_init = false
 
Entityparent = nullptr
 

Constructor & Destructor Documentation

◆ TemplateComponent()

tram::TemplateComponent::TemplateComponent ( )

◆ ~TemplateComponent()

tram::TemplateComponent::~TemplateComponent ( )

Member Function Documentation

◆ EventHandler()

void tram::TemplateComponent::EventHandler ( Event event)
virtual

Implements tram::EntityComponent.

◆ Init()

void tram::TemplateComponent::Init ( )
virtual

Initializes an entity component.

If an entity component has all of its resources already loaded, this will immediately Start() the component.

Reimplemented from tram::EntityComponent.

◆ Start()

void tram::TemplateComponent::Start ( )
virtual

Implements tram::EntityComponent.


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