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

Function GetIdToObjectMapValue

Source/Main/scenegraph.cpp:237–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237static Object* GetIdToObjectMapValue(std::vector<Object*>& object_from_id_map_, int id) {
238 Object* result = NULL;
239 if (id >= 0 && id < object_from_id_map_.size()) {
240 result = object_from_id_map_[id];
241 }
242 return result;
243}
244
245void SceneGraph::AssignID(Object* obj) {
246 int temp_id = obj->GetID();

Callers 4

LinkObjectMethod · 0.85
UnlinkObjectMethod · 0.85
GetObjectFromIDMethod · 0.85
DoesObjectWithIdExistMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected