Esempio n. 1
0
        private void LoadDefinerFromFile(string FileName)
        {
            var As = Assembly.LoadFile(FileName);

            LoadDescriptor.Title = Path.GetFileName(FileName);
            GameSettings.SetString("default_definer", FileName);
            var CheckType = typeof(IDefiner);
            var Definers  = As.GetTypes().Where(_ => CheckType.IsAssignableFrom(_)).ToArray();

            if (Definers.Length > 0)
            {
                IDefiner Definer = (IDefiner)Activator.CreateInstance(Definers[0]);
                Tiles = Definer.GetTileDefintions();
                ShowButtons();
            }
        }
 public DefineThisApplication(IDefiner definer, IHistoryRecorder historyRecorder)
 {
     _definer         = definer;
     _historyRecorder = historyRecorder;
 }