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

Command to remove resource from the world. More...

#include <builtin_commands.hpp>

Static Public Member Functions

static void Execute (World &world)
 Executes resource removal.

Detailed Description

template<ResourceTrait T>
struct helios::ecs::RemoveResourceCmd< T >

Command to remove resource from the world.

Removes resource from the world during execution.

Warning
Will trigger assertion if the resource does not exist in the world (when world updated).
Template Parameters
TResource type to remove

Definition at line 571 of file builtin_commands.hpp.

Member Function Documentation

◆ Execute()

template<ResourceTrait T>
void helios::ecs::RemoveResourceCmd< T >::Execute ( World & world)
inlinestatic

Executes resource removal.

Warning
Triggers assertion if the resource does not exist in the world.
Parameters
worldWorld to remove resource from

Definition at line 577 of file builtin_commands.hpp.