public void EndRound() { PauseRound(false); _gameRoundStateModel.PublishOnRoundEnded(); _savegameService.Save(); }
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(); }