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

Method ASSetIntVar

Source/Objects/hotspot.cpp:378–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376}
377
378void Hotspot::ASSetIntVar(const std::string& name, int value) {
379 *(int*)as_context->GetVarPtr(name.c_str()) = value;
380}
381
382void Hotspot::ASSetArrayIntVar(const std::string& name, int index, int value) {
383 *(int*)as_context->GetArrayVarPtr(name, index) = value;

Callers

nothing calls this directly

Calls 2

GetVarPtrMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected