public DesignTimeModLibraryViewModel() {
            var game = new Arma1Game(Guid.NewGuid(), new GameSettingsController());
            var collectionGroup = new ModLibraryGroupViewModel(this, "Collections",
                icon: SixIconFont.withSIX_icon_Folder);
            var collections =
                new CustomCollectionLibraryItemViewModel(this,
                    new CustomCollection(Guid.NewGuid(), game) {Name = "Test ModSet"},
                    collectionGroup);
            var subscribedCollections =
                new SubscribedCollectionLibraryItemViewModel(this,
                    new SubscribedCollection(Guid.NewGuid(), Guid.NewGuid(), game) {Name = "Test ModSet3"},
                    collectionGroup);
            var mod = new Mod(Guid.Empty) {
                Name = "@TESTMOD",
                FullName = "Da Full name fewafefiejaofijeafoijeafo ieafioj eaoi",
                Author = "The Author",
                Version = "1.2.0"
            };
            collections.Items.Add(new CustomCollection(Guid.NewGuid(), game) {
                Name = "Some ModSet wuith faopek faof aepokf poaefpokpof  eaf",
                Author = "Some author",
                Version = "1.0.2"
            });
            collections.Items.Add(mod);
            collections.SelectedItem = mod;

            // TODO
            //CreateItemsView(
            //    new ReactiveList<ContentLibraryItem>(new[]
            //    {subscribedCollections, sharedCollections, localCollections}), new LibraryGroup[0]);
            SelectedItem = collections;
        }
Пример #2
0
 public AllInArmaGames(Arma1Game arma1Game, Arma2Game arma2Game, Arma2FreeGame arma2FreeGame,
                       Arma2OaGame arma2OaGame,
                       TakeOnHelicoptersGame takeOnHelicoptersGame)
 {
     Arma1                = arma1Game;
     Arma2                = arma2Game;
     Arma2Free            = arma2FreeGame;
     Arma2Oa              = arma2OaGame;
     TakeOn               = takeOnHelicoptersGame;
     _games               = new Game[] { arma1Game, arma2FreeGame, arma2Game, arma2OaGame, takeOnHelicoptersGame };
     _gamesSupportModding = _games.OfType <ISupportModding>().ToArray();
 }
Пример #3
0
 public AllInArmaGames(Arma1Game arma1Game, Arma2Game arma2Game, Arma2FreeGame arma2FreeGame,
     Arma2OaGame arma2OaGame,
     TakeOnHelicoptersGame takeOnHelicoptersGame) {
     Arma1 = arma1Game;
     Arma2 = arma2Game;
     Arma2Free = arma2FreeGame;
     Arma2Oa = arma2OaGame;
     TakeOn = takeOnHelicoptersGame;
     _games = new Game[] {arma1Game, arma2FreeGame, arma2Game, arma2OaGame, takeOnHelicoptersGame};
     _gamesSupportModding = _games.OfType<ISupportModding>().ToArray();
 }
Пример #4
0
 public void SetUp() {
     _game = new Arma1Game(Guid.NewGuid(), new GameSettingsController());
     _settings = _game.Settings;
     _settings.Directory = @"C:\temp".ToAbsoluteDirectoryPath();
 }