Skip to content

Commit 7354456

Browse files
committed
Added shape to Field
1 parent 19ecbad commit 7354456

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

  • src/Codebreaker.ViewModels/Models

src/Codebreaker.ViewModels/Models/Field.cs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,27 @@
33
/// <summary>
44
/// Represents a field in a move.
55
/// </summary>
6-
/// <param name="possibleColors">The possible colors for this field.</param>
7-
public partial class Field(string[] possibleColors) : ObservableObject
6+
public partial class Field : ObservableObject
87
{
98
/// <summary>
109
/// The selected color for this field.
1110
/// </summary>
1211
[ObservableProperty]
1312
private string? _color;
1413

14+
/// <summary>
15+
/// The selected shape for this field.
16+
/// </summary>
17+
[ObservableProperty]
18+
private string? _shape;
19+
1520
/// <summary>
1621
/// The possible colors for this field.
1722
/// </summary>
18-
public string[] PossibleColors { get; init; } = possibleColors;
23+
public string[]? PossibleColors { get; set; }
24+
25+
/// <summary>
26+
/// The possible shapes for this field.
27+
/// </summary>
28+
public string[]? PossibleShapes { get; set; }
1929
}

0 commit comments

Comments
 (0)