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

Command to clear all event queues without removing registration. More...

#include <commands.hpp>

Inheritance diagram for helios::ecs::details::ClearAllEventsCmd:
helios::ecs::Command

Public Member Functions

constexpr ClearAllEventsCmd () noexcept=default
 
constexpr ClearAllEventsCmd (const ClearAllEventsCmd &) noexcept=default
 
constexpr ClearAllEventsCmd (ClearAllEventsCmd &&) noexcept=default
 
constexpr ~ClearAllEventsCmd () noexcept override=default
 
constexpr ClearAllEventsCmdoperator= (const ClearAllEventsCmd &) noexcept=default
 
constexpr ClearAllEventsCmdoperator= (ClearAllEventsCmd &&) noexcept=default
 
void Execute (World &world) override
 Executes the command to clear all event queues.
 
- Public Member Functions inherited from helios::ecs::Command
virtual constexpr ~Command () noexcept=default
 

Detailed Description

Command to clear all event queues without removing registration.

Definition at line 771 of file commands.hpp.

Constructor & Destructor Documentation

◆ ClearAllEventsCmd() [1/3]

constexpr helios::ecs::details::ClearAllEventsCmd::ClearAllEventsCmd ( )
constexprdefaultnoexcept

◆ ClearAllEventsCmd() [2/3]

constexpr helios::ecs::details::ClearAllEventsCmd::ClearAllEventsCmd ( const ClearAllEventsCmd )
constexprdefaultnoexcept

◆ ClearAllEventsCmd() [3/3]

constexpr helios::ecs::details::ClearAllEventsCmd::ClearAllEventsCmd ( ClearAllEventsCmd &&  )
constexprdefaultnoexcept

◆ ~ClearAllEventsCmd()

constexpr helios::ecs::details::ClearAllEventsCmd::~ClearAllEventsCmd ( )
constexproverridedefaultnoexcept

Member Function Documentation

◆ Execute()

void helios::ecs::details::ClearAllEventsCmd::Execute ( World world)
inlineoverridevirtual

Executes the command to clear all event queues.

Parameters
worldReference to the world

Implements helios::ecs::Command.

Definition at line 785 of file commands.hpp.

785{ world.ClearAllEventQueues(); }
BasicQuery< World, Allocator, Components... > Query
Type alias for query with mutable world access.
Definition query.hpp:2481

◆ operator=() [1/2]

constexpr ClearAllEventsCmd & helios::ecs::details::ClearAllEventsCmd::operator= ( ClearAllEventsCmd &&  )
constexprdefaultnoexcept

◆ operator=() [2/2]

constexpr ClearAllEventsCmd & helios::ecs::details::ClearAllEventsCmd::operator= ( const ClearAllEventsCmd )
constexprdefaultnoexcept