public void UpdateScore(GameTypes type, GameDifficulty difficulty, int game_score) { GameSessionHistoryExtended history = this; Score.SessionUpdateHistoryScore (ref history, type, difficulty, game_score); }
public bool ScoreGame(string answer) { int game_score; if (CurrentGame == null || Status == SessionStatus.Answered) { return(false); } game_score = CurrentGame.Score(answer); history.UpdateScore(CurrentGame.Type, Difficulty, game_score); Status = SessionStatus.Answered; return(game_score > 0 ? true : false); }