MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / UnlinkUpdateObject

Method UnlinkUpdateObject

Source/Main/scenegraph.cpp:1828–1835  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1826}
1827
1828void SceneGraph::UnlinkUpdateObject(Object* obj, int entry) {
1829 SDL_assert(update_objects_[entry] == obj);
1830 if (entry != num_update_objects - 1) {
1831 update_objects_[entry] = update_objects_[num_update_objects - 1];
1832 update_objects_[entry]->update_list_entry = entry;
1833 }
1834 --num_update_objects;
1835}
1836
1837void SceneGraph::Dispose() {
1838 for (auto& object : objects_) {

Callers 3

SetEnabledMethod · 0.80
~ObjectMethod · 0.80
UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected