using DoomDeathmatch.Component.MVC.Model;
using Engine.Scene.Component.BuiltIn.Renderer;

namespace DoomDeathmatch.Component.MVC.View;

public class ScoreView : Engine.Scene.Component.Component
{
  private readonly TextRenderer _scoreTextRenderer;

  public ScoreView(TextRenderer parScoreTextRenderer)
  {
    _scoreTextRenderer = parScoreTextRenderer;
  }

  public void UpdateView(ScoreModel parScoreModel)
  {
    _scoreTextRenderer.Text = $"Счет: {parScoreModel.Score:00000}";
  }
}