MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / VarLocal

Method VarLocal

engine/Evaluator/express.cpp:2474–2484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2472GameVarSpace::GameVarSpace(GameVarSpace* parent) : _parent(parent) {}
2473
2474void GameVarSpace::VarLocal(const char* name)
2475{
2476 const GameVariable& var = _vars[name];
2477 if (NotNull(var))
2478 {
2479 return;
2480 }
2481
2482 GameVariable newvar(name, GameValueNil());
2483 _vars.Add(newvar);
2484}
2485
2486void GameVarSpace::VarSet(const char* name, GameValuePar value, bool readOnly)
2487{

Callers 4

StringLocalFunction · 0.80
VarSetLocalMethod · 0.80

Calls 3

LowerMethod · 0.80
SetErrorFunction · 0.50
AddMethod · 0.45

Tested by

no test coverage detected