Add reign initizalization

This commit is contained in:
Andrew Cooper
2022-10-22 15:46:44 +11:00
parent 9b471073b0
commit da0f2d13ab
14 changed files with 140 additions and 6 deletions

23
53_King/csharp/Reign.cs Normal file
View File

@@ -0,0 +1,23 @@
namespace King;
internal class Reign
{
public const int MaxTerm = 8;
private readonly IReadWrite _io;
private readonly Country _country;
private readonly float _year;
public Reign(IReadWrite io, IRandom random)
: this(io, new Country(random), 0)
{
}
public Reign(IReadWrite io, Country country, float year)
{
_io = io;
_country = country;
_year = year;
}
}