VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::IComponentStorage Class Referenceabstract

Abstract base class for component storage implementations. More...

#include <Types.hpp>

Inheritance diagram for vex::IComponentStorage:
vex::ComponentStorage< T >

Public Member Functions

virtual ~IComponentStorage ()=default
 Virtual destructor for proper cleanup of derived classes.
virtual void entity_destroyed (Entity entity)=0
 Called when an entity is destroyed to clean up its associated components.

Detailed Description

Abstract base class for component storage implementations.

This interface defines the contract that all component storage classes must follow. It allows the Registry to manage different component types uniformly through polymorphism.

Definition at line 21 of file Types.hpp.

Member Function Documentation

◆ entity_destroyed()

virtual void vex::IComponentStorage::entity_destroyed ( Entity entity)
pure virtual

Called when an entity is destroyed to clean up its associated components.

Parameters
entityThe entity being destroyed.

Implementations should remove any components associated with the given entity and invoke any registered destroy callbacks before cleanup.

Implemented in vex::ComponentStorage< T >.


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