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

Method ASGetIntVar

Source/Objects/movementobject.cpp:4618–4620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4616}
4617
4618int MovementObject::ASGetIntVar(std::string name) {
4619 return *((int*)as_context->GetVarPtr(name.c_str()));
4620}
4621
4622int MovementObject::ASGetArrayIntVar(std::string name, int index) {
4623 return *((int*)as_context->GetArrayVarPtr(name, index));

Callers

nothing calls this directly

Calls 2

GetVarPtrMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected