feat: Setup MVP
This commit is contained in:
parent
14fdd4558e
commit
1dd490b7ed
27 changed files with 555 additions and 52 deletions
18
Assets/Scripts/Presenter/CTrencadaClick.cs
Normal file
18
Assets/Scripts/Presenter/CTrencadaClick.cs
Normal file
|
@ -0,0 +1,18 @@
|
|||
using Domain;
|
||||
|
||||
namespace Presenter {
|
||||
public class CTrencadaClick {
|
||||
private readonly Model _model;
|
||||
private readonly ICTrencadaInput _view;
|
||||
|
||||
public CTrencadaClick(Model model, ICTrencadaInput view) {
|
||||
_model = model;
|
||||
_view = view;
|
||||
}
|
||||
|
||||
public void Execute() {
|
||||
_model.AddScore(1);
|
||||
_view.UpdateView(_model.Score);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue