| 533 | } |
| 534 | |
| 535 | GameValue Script::VarGet(const char* name) const |
| 536 | { |
| 537 | GameState* gstate = GWorld->GetGameState(); |
| 538 | gstate->BeginContext(const_cast<GameVarSpace*>(&_vars)); |
| 539 | GameValuePar retval = gstate->VarGet(name); |
| 540 | gstate->EndContext(); |
| 541 | return retval; |
| 542 | } |
| 543 | |
| 544 | void Script::VarSet(const char* name, GameValuePar value, bool readOnly) |
| 545 | { |