feat: Setup MVP

This commit is contained in:
Gerard Gascón 2024-04-12 16:25:32 +02:00
parent 14fdd4558e
commit 1dd490b7ed
27 changed files with 555 additions and 52 deletions

View 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);
}
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 6cbffd8965b14583b8d2b3d4dc852e8d
timeCreated: 1712930886

View file

@ -0,0 +1,5 @@
namespace Presenter {
public interface ICTrencadaInput {
void UpdateView(int score);
}
}

View file

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: ad480317372b4bde9e61c8cf5b56ba72
timeCreated: 1712931293

View file

@ -0,0 +1,4 @@
{
"name": "SantJordi.Presenter",
"references":[ "GUID:23c7c01f8c5436c429399011615ce636" ]
}

View file

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d9011953b32919841a6c357880a50fb3
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant: