SpiecsEngine
Loading...
Searching...
No Matches
◆
GetComponent()
template<typename T >
T & Spices::World::GetComponent
(
entt::entity
e
)
Get
Component
owned by this entity.
Template Parameters
T
Which
Component
we will get.
Parameters
[in]
e
entt::entity.
Returns
Returns the specific
Component
.
Note
lock cause bug here.
Definition at line
353
of file
World.h
.
354
{
355
SPICES_PROFILE_ZONE
;
356
360
//std::shared_lock<std::shared_mutex> lock(m_Mutex);
361
362
return
m_Registry
.get<
T
>(
e
);
363
}
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
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