MCPcopy Create free account
hub / github.com/Illation/ETEngine / OnMerge

Method OnMerge

Engine/source/EtFramework/ECS/EcsCommandBuffer.cpp:152–158  ·  view source on GitHub ↗

---------------------------- EcsCommandBuffer::OnMerge

Source from the content-addressed store, hash-verified

150// EcsCommandBuffer::OnMerge
151//
152void EcsCommandBuffer::OnMerge(T_EntityId const entity, T_OnMergeFn& fn)
153{
154 // get the component pointer buffer for the entity
155 auto buffer = m_AddComponents.emplace(entity, AddBuffer()).first;
156
157 buffer->second.callbacks.emplace_back(fn);
158}
159
160
161// private system control

Callers 1

ProcessMethod · 0.80

Calls 2

AddBufferClass · 0.85
emplaceMethod · 0.80

Tested by

no test coverage detected