SpiecsEngine
Loading...
Searching...
No Matches
◆
HasComponent()
template<typename T >
bool Spices::World::HasComponent
(
entt::entity
e
)
If
Component
is owned by this entity or not.
Template Parameters
T
Which
Component
we will search.
Parameters
[in]
e
entt::entity.
Returns
Returns true if found.
Definition at line
376
of file
World.h
.
377
{
378
SPICES_PROFILE_ZONE
;
379
380
std::shared_lock<std::shared_mutex> lock(
m_Mutex
);
381
382
return
m_Registry
.all_of<
T
>(
e
);
383
}
SPICES_PROFILE_ZONE
#define SPICES_PROFILE_ZONE
Definition
TracyProfilerWrapper.h:100
Spices::World::m_Registry
entt::registry m_Registry
This variable handles all entity.
Definition
World.h:250
Spices::World::m_Mutex
std::shared_mutex m_Mutex
Mutex for world.
Definition
World.h:245
SpicesTest::VariableTraitsTestN::e
void * e
Definition
VariableTraits_test.h:36
Spices::Key::T
@ T
Definition
KeyCodes.h:65
Spices
World
Generated on Sun Mar 8 2026 10:24:50 for SpiecsEngine by
1.10.0