refactor: convert component structs to record structs
This commit is contained in:
@@ -6,7 +6,7 @@ namespace Game.TicTacToe;
|
||||
/// Identifies a board position. One entity per cell.
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public struct Cell
|
||||
public record struct Cell
|
||||
{
|
||||
[Key(0)] public int Row;
|
||||
[Key(1)] public int Col;
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Game.TicTacToe;
|
||||
/// Only present on cells that have been claimed.
|
||||
/// </summary>
|
||||
[MessagePackObject]
|
||||
public struct Mark
|
||||
public record struct Mark
|
||||
{
|
||||
[Key(0)] public Player Player;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user