Пример #1
0
 public static void Setup(Game game)
 {
     Game             = game;
     StaticData       = game.StaticData;
     ProcessorManager = new ProcessorManager(game);
     GamePulse        = new MasterTimePulse(game);
     EventLog         = new EventLog(game);
     SyncContext      = SynchronizationContext.Current;
     OrderHandler     = game.OrderHandler;
 }
Пример #2
0
        public void Initialise(GameVM gameVM)
        {
            _gameVM   = gameVM;
            _timeloop = gameVM.Game.GamePulse;

            OnPropertyChanged(nameof(TickLength));
            OnPropertyChanged(nameof(TickMultiplier));
            OnPropertyChanged(nameof(TickFreq));
            OnPropertyChanged(nameof(CurrentGameDate));

            _timeloop.GameGlobalDateChangedEvent += OnTimeDateChange;
        }