Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
helios::ecs::Command Class Referenceabstract

Base class for all commands to be executed in the world. More...

#include <command.hpp>

Inheritance diagram for helios::ecs::Command:
helios::ecs::details::AddComponentCmd< T > helios::ecs::details::AddComponentsCmd< Ts > helios::ecs::details::ClearAllEventsCmd helios::ecs::details::ClearComponentsCmd helios::ecs::details::ClearEventsCmd< T > helios::ecs::details::DestroyEntitiesCmd helios::ecs::details::DestroyEntityCmd helios::ecs::details::FunctionCmd< F > helios::ecs::details::InsertResourceCmd< T > helios::ecs::details::RemoveComponentCmd< T > helios::ecs::details::RemoveComponentsCmd< Ts > helios::ecs::details::RemoveResourceCmd< T > helios::ecs::details::TryAddComponentCmd< T > helios::ecs::details::TryAddComponentsCmd< Ts > helios::ecs::details::TryDestroyEntitiesCmd helios::ecs::details::TryDestroyEntityCmd helios::ecs::details::TryInsertResourceCmd< T > helios::ecs::details::TryRemoveComponentCmd< T > helios::ecs::details::TryRemoveComponentsCmd< Ts > helios::ecs::details::TryRemoveResourceCmd< T >

Public Member Functions

virtual constexpr ~Command () noexcept=default
 
virtual void Execute (class World &world)=0
 

Detailed Description

Base class for all commands to be executed in the world.

Commands are used to modify the world in a thread-safe manner. They are recorded in a command buffer and executed in the order they were recorded when World::Update() is called.

Definition at line 12 of file command.hpp.

Constructor & Destructor Documentation

◆ ~Command()

virtual constexpr helios::ecs::Command::~Command ( )
constexprvirtualdefaultnoexcept

Member Function Documentation

◆ Execute()