public void EndRound()
        {
            PauseRound(false);
            _gameRoundStateModel.PublishOnRoundEnded();

            _savegameService.Save();
        }
Example #2
0
        public SavegameFeatureModel(
            Savegame <SavegameContent> savegame,
            ISavegameService savegameService)
        {
            var savegameJson = JsonConvert.SerializeObject(savegame, Formatting.Indented);

            var sb = new StringBuilder()
                     .AppendLine("CURRENT SAVEGAME:")
                     .AppendLine($"{savegameJson}");

            StaticLogger.Log(sb.ToString());

            savegameService.Save();
        }