You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
617 B
26 lines
617 B
using CoreLibrary.Joueurs;
|
|
|
|
namespace CoreLibrary.Manager
|
|
{
|
|
public class Manager : IDisposable
|
|
{
|
|
private readonly IPersistanceManager persistance;
|
|
|
|
private readonly IEnumerable<Joueur> joueurs;
|
|
public IEnumerable<Joueur> Joueurs => joueurs;
|
|
|
|
public Manager(IPersistanceManager persistance)
|
|
{
|
|
this.persistance = persistance;
|
|
joueurs = this.persistance.Charger();
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
persistance.Enregistrer(joueurs);
|
|
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
}
|
|
}
|