| | | 1 | | namespace Safarimacik.Model; |
| | | 2 | | |
| | | 3 | | |
| | | 4 | | /// <summary> |
| | | 5 | | /// Struct for game difficulty. |
| | | 6 | | /// </summary> |
| | | 7 | | public readonly struct Difficulty { |
| | | 8 | | /// <summary>The win conditions that have to be met for 90 days: 20 tourists, 10-10 animals, 3000 coins</summary> |
| | 1 | 9 | | public static readonly Difficulty Easy = new(90, 20, 10, 3000); |
| | | 10 | | /// <summary>The win conditions that have to be met for 180 days: 40 tourists, 12-12 animals, 5000 coins</summary> |
| | 1 | 11 | | public static readonly Difficulty Medium = new(180, 40, 12, 5000); |
| | | 12 | | /// <summary>The win conditions that have to be met for 360 days: 80 tourists, 20-20 animals, 20000 coins</summary> |
| | 1 | 13 | | public static readonly Difficulty Hard = new(360, 80, 20, 20000); |
| | | 14 | | |
| | 1 | 15 | | public (int, int, int, int) Value { get; } |
| | | 16 | | |
| | 1 | 17 | | private Difficulty(int timeLimit, int touristLimit, int animalLimit, int moneyLimit) { |
| | 1 | 18 | | Value = (timeLimit, touristLimit, animalLimit, moneyLimit); |
| | 1 | 19 | | } |
| | | 20 | | } |