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

Method GetVarPtrCache

Source/Scripting/angelscript/asmodule.cpp:1290–1300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1288}
1289
1290void* ASModule::GetVarPtrCache(const char* name) {
1291 std::map<void*, void*>::iterator iter = fast_var_ptr_map.find((void*)name);
1292 if (iter != fast_var_ptr_map.end()) {
1293 return iter->second;
1294 } else {
1295 int index = module_->GetGlobalVarIndexByName(name);
1296 void* addr = module_->GetAddressOfGlobalVar(index);
1297 fast_var_ptr_map[(void*)name] = addr;
1298 return addr;
1299 }
1300}
1301
1302void ASModule::GetGlobalVars(std::list<VarStorage>& storage, std::list<ScriptObjectInstance>& handle_var_list) {
1303 int c = module_->GetGlobalVarCount();

Callers 15

CDrawArmsFunction · 0.80
CDisplayMatrixUpdateFunction · 0.80
CGetCenterOfMassEstimateFunction · 0.80
CDoChestIKFunction · 0.80
CDoHeadIKFunction · 0.80
CDoFootIKFunction · 0.80
CDoHipIKFunction · 0.80
CDrawLegFunction · 0.80
CDrawHeadFunction · 0.80
CDrawBodyFunction · 0.80
CDrawEarFunction · 0.80
CDrawTailFunction · 0.80

Calls 4

GetAddressOfGlobalVarMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected