MCPcopy Create free account
hub / github.com/GodotECS/godex / conclude_process

Method conclude_process

iterators/dynamic_query.cpp:218–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void DynamicQuery::conclude_process(World *p_world) {
219 // Unfreeze the EntityLists.
220 for (uint32_t i = 0; i < entity_lists.size(); i += 1) {
221 entity_lists[i].unfreeze();
222 }
223
224 // Clear the changed entity_list at this point, so to start collecting the new
225 // changes.
226 for (uint32_t i = 0; i < elements.size(); i += 1) {
227 if (elements[i].mode == CHANGED_MODE) {
228 entity_lists[elements[i].entity_list_index].clear();
229 }
230 }
231
232 // Clear any component reference.
233 storages.clear();
234 iterator_index = 0;
235 entities.count = 0;
236}
237
238void DynamicQuery::release_world(World *p_world) {
239 world = nullptr;

Callers

nothing calls this directly

Calls 3

unfreezeMethod · 0.80
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected