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

Method ASGetIntVar

Source/Objects/hotspot.cpp:362–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362int Hotspot::ASGetIntVar(const std::string& name) {
363 return *((int*)as_context->GetVarPtr(name.c_str()));
364}
365
366int Hotspot::ASGetArrayIntVar(const std::string& name, int index) {
367 return *((int*)as_context->GetArrayVarPtr(name, index));

Callers 1

UpdateMethod · 0.45

Calls 2

GetVarPtrMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected