EddiSpeechResponder.ScriptResolver.resolve C# (CSharp) Метод

resolve() публичный Метод

public resolve ( string name, Cottle.Value>.Dictionary vars ) : string
name string
vars Cottle.Value>.Dictionary
Результат string
        public string resolve(string name, Dictionary<string, Cottle.Value> vars)
        {
            return resolve(name, buildStore(vars));
        }

Same methods

ScriptResolver::resolve ( string name, BuiltinStore store ) : string

Usage Example

        // Say something with a custom resolver
        public void Say(ScriptResolver resolver, string scriptName, Event theEvent = null, int?priority = null, bool?wait = null)
        {
            Dictionary <string, Cottle.Value> dict = createVariables(theEvent);
            string script = resolver.resolve(scriptName, dict);

            if (script != null)
            {
                SpeechService.Instance.Say(EDDI.Instance.Ship, script, (wait == null ? true : (bool)wait), (priority == null ? resolver.priority(scriptName) : (int)priority));
            }
        }
All Usage Examples Of EddiSpeechResponder.ScriptResolver::resolve