Exemplo n.º 1
0
        public SerializableGameViewModel([NotNull] GameConfig config)
        {
            Assert.IsNotNull(config);
            _serializer = new GameSerializer();
            var model = _serializer.TryLoad();

            ViewModel = GameViewModel.Create(config, model);
            Observable.Timer(TimeSpan.FromSeconds(30))
            .Subscribe(_ => Save());
        }