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

Method LinkUpdateObject

Source/Main/scenegraph.cpp:1817–1826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1815}
1816
1817int SceneGraph::LinkUpdateObject(Object* obj) {
1818 if (num_update_objects < kMaxUpdateObjects) {
1819 int id = num_update_objects++;
1820 update_objects_[id] = obj;
1821 return id;
1822 } else {
1823 FatalError("Error", "Too many update objects");
1824 return -1;
1825 }
1826}
1827
1828void SceneGraph::UnlinkUpdateObject(Object* obj, int entry) {
1829 SDL_assert(update_objects_[entry] == obj);

Callers 6

InitializeMethod · 0.80
SetEnabledMethod · 0.80
InitializeMethod · 0.80
InitializeMethod · 0.80
ReceiveASVec3MessageMethod · 0.80
InitializeMethod · 0.80

Calls 1

FatalErrorFunction · 0.50

Tested by

no test coverage detected