VariableInfo* Script::GetVariableByName(const char* varName) { VarListVisitor visitor(&varList); const VarInfoEntry* varEntry = visitor.Find(ScriptVarFinder(varName)); if (varEntry) return varEntry->data; else return NULL; }
Script::VariableInfo* Script::GetVariableByName(const char* varName) { VariableInfo* pVariableInfo = vars.Find(ScriptVarFinder(varName)); return pVariableInfo; }