File tree Expand file tree Collapse file tree
src/Codebreaker.ViewModels/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments