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

Command to try remove resource (only if present). More...

#include <builtin_commands.hpp>

Static Public Member Functions

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

Detailed Description

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

Command to try remove resource (only if present).

Removes resource from the world during execution only if it exists.

Template Parameters
TResource type to remove

Definition at line 587 of file builtin_commands.hpp.

Member Function Documentation

◆ Execute()

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

Executes resource removal if it exists.

Parameters
worldWorld to remove resource from

Definition at line 592 of file builtin_commands.hpp.