Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::ecs::ClearMessagesCmd< T > Struct Template Reference

Command to clear all messages of a specific type from the queue. More...

#include <builtin_commands.hpp>

Static Public Member Functions

static void Execute (World &world)
 Executes the command to clear messages of type T.

Detailed Description

template<AnyMessageTrait T>
struct helios::ecs::ClearMessagesCmd< T >

Command to clear all messages of a specific type from the queue.

Clears all messages of type T from the message queue during execution without removing registration.

Template Parameters
TMessage type to clear

Definition at line 602 of file builtin_commands.hpp.

Member Function Documentation

◆ Execute()

template<AnyMessageTrait T>
void helios::ecs::ClearMessagesCmd< T >::Execute ( World & world)
inlinestatic

Executes the command to clear messages of type T.

Parameters
worldReference to the world

Definition at line 607 of file builtin_commands.hpp.