| 216 | } |
| 217 | |
| 218 | void 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 | |
| 238 | void DynamicQuery::release_world(World *p_world) { |
| 239 | world = nullptr; |