VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
Types.hpp
1#pragma once
2
3#include <cstddef>
4#include <cstdint>
5
6namespace vex {
11 using Entity = uint32_t;
12
15 constexpr Entity NULL_ENTITY = static_cast<Entity>(-1);
16
22 public:
24 virtual ~IComponentStorage() = default;
25
30 virtual void entity_destroyed(Entity entity) = 0;
31 };
32}
Abstract base class for component storage implementations.
Definition Types.hpp:21
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.
uint32_t Entity
Type alias representing a unique entity identifier in the ECS system.
Definition Types.hpp:11
constexpr Entity NULL_ENTITY
Special entity value indicating an invalid or null entity.
Definition Types.hpp:15