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

Method RemoveComponentTypes

Engine/source/EtFramework/ECS/EcsCommandBuffer.cpp:137–147  ·  view source on GitHub ↗

---------------------------------------- EcsCommandBuffer::RemoveComponentTypes

Source from the content-addressed store, hash-verified

135// EcsCommandBuffer::RemoveComponentTypes
136//
137void EcsCommandBuffer::RemoveComponentTypes(T_EntityId const entity, T_CompTypeList const& componentTypes)
138{
139 // get the component type buffer for the entity
140 auto buffer = m_RemoveComponents.emplace(entity, T_CompTypeList()).first;
141
142 // add components to remove to the buffer
143 for (T_CompTypeIdx const compType : componentTypes)
144 {
145 buffer->second.push_back(compType);
146 }
147}
148
149//----------------------------
150// EcsCommandBuffer::OnMerge

Callers

nothing calls this directly

Calls 1

emplaceMethod · 0.80

Tested by

no test coverage detected