예제 #1
0
 public void Run()
 {
     NewsEngine.Run(Model);
     AlertsEngine.Run(Model);
     InvasionsEngine.Run(Model);
     VoidsEngine.Run(Model);
     DailyDealsEngine.Run(Model);
     ItemsEngine.Run(Model, UserNotificationsEngine);
     BuildsEngine.Run(Model);
 }
예제 #2
0
        public GameViewModel(GameModel model, FiltersEvent filtersEvent)
        {
            var reloadTimer = new DispatcherTimer {
                Interval = TimeSpan.FromSeconds(1)
            };

            reloadTimer.Tick += reloadTimer_Elapsed;
            reloadTimer.Start();

            Model = model;

            ItemsEngine = new ItemsEngine(filtersEvent);

            NewsEngine              = new NewsEngine();
            AlertsEngine            = new AlertsEngine(filtersEvent, ItemsEngine);
            InvasionsEngine         = new InvasionsEngine(filtersEvent, ItemsEngine);
            VoidsEngine             = new VoidsEngine(filtersEvent);
            DailyDealsEngine        = new DailyDealsEngine(filtersEvent);
            BuildsEngine            = new BuildsEngine();
            UserNotificationsEngine = new UserNotificationsEngine(this);
        }