コード例 #1
0
ファイル: MainVM.cs プロジェクト: CharmedBaryon/Mutagen
        public MainVM()
        {
            var env = GameEnvironment.Typical.Skyrim(SkyrimRelease.SkyrimSE, LinkCachePreferences.OnlyIdentifiers())
                      .DisposeWith(this);

            LinkCache       = env.LinkCache;
            LoadOrder       = env.LoadOrder;
            ScopedTypes     = typeof(IArmorGetter).AsEnumerable();
            LateSetPickerVM = new LateSetPickerVM(this);
        }
コード例 #2
0
        public MainVM()
        {
            var gameRelease = SkyrimRelease.SkyrimSE;
            var env         = GameEnvironment.Typical.Skyrim(gameRelease, LinkCachePreferences.OnlyIdentifiers())
                              .DisposeWith(this);

            LinkCache       = env.LinkCache;
            LoadOrder       = env.LoadOrder;
            ScopedTypes     = typeof(IArmorGetter).AsEnumerable();
            LateSetPickerVM = new LateSetPickerVM(this);
            Reflection      = new ReflectionSettingsVM(
                ReflectionSettingsParameters.CreateFrom(
                    new TestSettings(),
                    env.LoadOrder.ListedOrder,
                    env.LinkCache));
            LoadOrderVM = new FileSyncedLoadOrderVM(env.LoadOrderFilePath)
            {
                DataFolderPath       = env.DataFolderPath.Path,
                CreationClubFilePath = env.CreationKitLoadOrderFilePath?.Path ?? string.Empty,
                GameRelease          = gameRelease.ToGameRelease(),
            };
        }