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

Function ASReadItemID

Source/Scripting/angelscript/asfuncs.cpp:3115–3122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3113}
3114
3115ItemObject* ASReadItemID(int which) {
3116 Object* obj = the_scenegraph->GetObjectFromID(which);
3117 if (!obj || obj->GetType() != _item_object) {
3118 std::string callstack = active_context_stack.top()->GetCallstack();
3119 FatalError("Error", "There is no item object %d\n Called from:\n%s", which, callstack.c_str());
3120 }
3121 return (ItemObject*)obj;
3122}
3123
3124EnvObject* ASReadEnvObjectID(int which) {
3125 Object* obj = the_scenegraph->GetObjectFromID(which);

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected