Template Struct ComponentManager::ComponentStorage

Nested Relationships

This struct is a nested type of Class ComponentManager.

Inheritance Relationships

Base Type

  • public prism::scene::ComponentManager::IComponentStorage

Struct Documentation

template<typename T>
struct ComponentStorage : public prism::scene::ComponentManager::IComponentStorage

Конкретная реализация хранилища для типа компонента

Параметры шаблона:

T – Тип компонента

Public Functions

inline void removeEntity(Entity entityId) override

Public Members

std::unordered_map<Entity, std::shared_ptr<T>> components

Карта сущность -> компонент