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

Function ASReadCharacter

Source/Scripting/angelscript/asfuncs.cpp:3072–3078  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3070}
3071
3072MovementObject* ASReadCharacter(int which) {
3073 if (which < 0 || which >= (int)the_scenegraph->movement_objects_.size()) {
3074 std::string callstack = active_context_stack.top()->GetCallstack();
3075 FatalError("Error", "There is no movement object #%d\n Called from:\n%s", which, callstack.c_str());
3076 }
3077 return (MovementObject*)the_scenegraph->movement_objects_[which];
3078}
3079
3080Hotspot* ASReadHotspot(int which) {
3081 if (which < 0 || which >= (int)the_scenegraph->hotspots_.size()) {

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected