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

Method DoesObjectWithIdExist

Source/Main/scenegraph.cpp:1155–1159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1153}
1154
1155bool SceneGraph::DoesObjectWithIdExist(int object_id) {
1156 Object* object_at_id = GetIdToObjectMapValue(object_from_id_map_, object_id);
1157 bool result = object_at_id != NULL;
1158 return result;
1159}
1160
1161std::vector<Object*> SceneGraph::GetObjectsOfType(enum EntityType type) {
1162 std::vector<Object*> ret;

Callers 2

ObjectExistsFunction · 0.80
ASObjectExistsFunction · 0.80

Calls 1

GetIdToObjectMapValueFunction · 0.85

Tested by

no test coverage detected