mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-18 15:00:21 +02:00
Added ScriptVariableList::VariableExists
This commit is contained in:
2 files changed
+10
-4
No files matched your search
@@ -2359,16 +2359,21 @@ ScriptVariable *ScriptVariableList::GetOrCreateVariable(unsigned int name)
|
||||
return &list.addKeyValue(name);
|
||||
}
|
||||
|
||||
ScriptVariable *ScriptVariableList::GetVariable(str name)
|
||||
ScriptVariable *ScriptVariableList::GetVariable(str name) const
|
||||
{
|
||||
return GetVariable(Director.AddString(name));
|
||||
}
|
||||
|
||||
ScriptVariable *ScriptVariableList::GetVariable(unsigned int name)
|
||||
ScriptVariable *ScriptVariableList::GetVariable(unsigned int name) const
|
||||
{
|
||||
return list.findKeyValue(name);
|
||||
}
|
||||
|
||||
bool ScriptVariableList::VariableExists(str name) const
|
||||
{
|
||||
return GetVariable(name) != NULL;
|
||||
}
|
||||
|
||||
ScriptVariable *ScriptVariableList::SetVariable(const char *name, int value)
|
||||
{
|
||||
ScriptVariable *variable = GetOrCreateVariable(name);
|
||||
|
||||
Reference in new issue
Block a user