|
R-Type
Distributed multiplayer game engine in C++
|
Base interface for all ECS components. More...
#include <IComponent.hpp>


Public Member Functions | |
| virtual | ~IComponent ()=default |
| Virtual destructor. | |
| virtual ComponentType | getType () const =0 |
| Get the unique type identifier for this component. | |
Base interface for all ECS components.
All components in the Entity-Component-System must inherit from this interface. Each component type is assigned a unique ID for identification and bitmask operations.
Definition at line 31 of file IComponent.hpp.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Get the unique type identifier for this component.
Implemented in ecs::Animation, ecs::AnimationSet, ecs::Buff, ecs::Collectible, ecs::Collider, ecs::Enemy, ecs::Health, ecs::LuaScript, ecs::MapData, ecs::OrbitalModule, ecs::PendingDestroy, ecs::Player, ecs::Projectile, ecs::Spawner, ecs::Sprite, ecs::Transform, ecs::Velocity, ecs::Wall, and ecs::Weapon.