5#include <dotnetpp/dotnetpp.h>
7#include <hpp/type_name.hpp>
14 if(
id == entt::entity(0))
19 auto& ec = ctx.get_cached<
ecs>();
25 dotnet::raise_exception(
"System",
"Exception",
"Entity is invalid.");
31 dotnet::raise_exception(
"System",
33 fmt::format(
"Entity does not have component of type {}.", hpp::type_name_str<T>()));
45 auto* comp = e.try_get<T>();
void raise_missing_component_exception()
void raise_invalid_entity_exception()
auto get_entity_from_id(entt::entity id) -> entt::handle
auto safe_get_component(entt::entity id) -> T *
Manages the entity-component-system (ECS) operations for the ACE framework.
auto get_scene() -> scene &
Gets the current scene.
static auto context() -> rtti::context &