public void LoadScripts(EngineWrapper engine, string dir) { _scripts.Clear(); LoadDirectory(dir); foreach (var script in _scripts) { engine.Execute(File.ReadAllText(script.Value)); } engine.AddHardCommand("reload", () => LoadScripts(engine, dir)); _scripts.Add("reload", "hard"); }