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

Function ReadObjectFromID

Source/Scripting/angelscript/asfuncs.cpp:2356–2366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2354}
2355
2356Object* ReadObjectFromID(int id) {
2357 Object* obj = the_scenegraph->GetObjectFromID(id);
2358 if (!obj) {
2359 std::string callstack = active_context_stack.top()->GetCallstack();
2360 std::ostringstream oss;
2361 oss << "There is no object " << id << "\n Called from:\n"
2362 << callstack;
2363 FatalError("Error", "There is no object %d\n Called from:\n%s", id, callstack.c_str());
2364 }
2365 return obj;
2366}
2367
2368void ASSetTranslation(Object* obj, const vec3& vec) {
2369 switch (obj->GetType()) {

Callers 1

CUpdateShadowImplFunction · 0.85

Calls 5

GetObjectFromIDMethod · 0.80
GetCallstackMethod · 0.80
topMethod · 0.80
FatalErrorFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected