This commit is contained in:
2026-10-23 19:23:03 +02:00
parent 8c8240de63
commit 19428550ca
90 changed files with 6912 additions and 0 deletions
@@ -0,0 +1,14 @@
namespace ActionBlocks.Game.Core;
/// <summary>One board cell. <see cref="ItemId"/> is set when the cell carries an item.</summary>
public readonly record struct Cell(byte Color, string? ItemId = null)
{
public static readonly Cell Empty = new(CellColor.Empty);
public bool IsEmpty => Color == CellColor.Empty;
}
public readonly record struct Point(int X, int Y)
{
public static Point operator +(Point a, Point b) => new(a.X + b.X, a.Y + b.Y);
}