internal MenuDef Exec() { EvalExec(); var gamedefs = new List <GameDef>(); var stripdividers = true; // TODO: make this an option foreach (var gamecode in _gamecodes) { var def = gamecode.Exec(gamedefs.Count > 0); if (!(stripdividers && def.GetStringProperty("title") == "-")) { gamedefs.Add(def); } //gamedefs.Add(gamecode.Exec(gamedefs.Count > 0)); } return(MenuDef.Create(gamedefs)); }
// factories internal static MenuModel Create(MenuDef def) { return(new MenuModel { Def = def, }); }