Nui Engine
A game engine framework
Loading...
Searching...
No Matches
Nui::ECS::Internal::ComponentContainer< T > Struct Template Reference

Template class for component containers (concrete implementation of ComponentContainerBase) More...

#include <Component.h>

Inheritance diagram for Nui::ECS::Internal::ComponentContainer< T >:
Nui::ECS::Internal::ComponentContainerBase

Public Member Functions

 ComponentContainer (const T &data)
 
- Public Member Functions inherited from Nui::ECS::Internal::ComponentContainerBase
virtual ~ComponentContainerBase ()=default
 Virtual destructor.
 

Public Attributes

m_data
 

Protected Member Functions

virtual void OnRemove (Entity *entity) override
 Method called when an entity is removed.
 

Detailed Description

template<typename T>
struct Nui::ECS::Internal::ComponentContainer< T >

Template class for component containers (concrete implementation of ComponentContainerBase)

Template Parameters
TThe stored component data

Member Function Documentation

◆ OnRemove()

template<typename T >
void Nui::ECS::Internal::ComponentContainer< T >::OnRemove ( Entity * entity)
inlineoverrideprotectedvirtual

Method called when an entity is removed.

Parameters
entityThe entity that was removed

Implements Nui::ECS::Internal::ComponentContainerBase.


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