21 lines
No EOL
582 B
C#
21 lines
No EOL
582 B
C#
using Domain;
|
|
|
|
namespace Presenter.SaveSystem {
|
|
public class LoadGame {
|
|
private readonly IGameRepository _repository;
|
|
private readonly Score _score;
|
|
private readonly IExpressionInput _expressionInput;
|
|
|
|
public LoadGame(IGameRepository repository, Score score, IExpressionInput expressionInput) {
|
|
_repository = repository;
|
|
_score = score;
|
|
_expressionInput = expressionInput;
|
|
}
|
|
|
|
public void Run() {
|
|
Score newScore = _repository.LoadScore();
|
|
_score.SetFromOtherScore(newScore);
|
|
_expressionInput.UpdateView(_score.Value, _score.GrowPercentage);
|
|
}
|
|
}
|
|
} |