Maps are more generic as well as cells.
This commit is contained in:
@@ -5,15 +5,15 @@ namespace ConsoleApp.Maps
|
||||
{
|
||||
public struct HexCell : IHexCell
|
||||
{
|
||||
public int Q { get; }
|
||||
public int R { get; }
|
||||
public int S { get; }
|
||||
public int X { get; }
|
||||
public int Y { get; }
|
||||
public int Z { get; }
|
||||
public HexCell(int q, int r, int s)
|
||||
{
|
||||
if (q + r + s != 0) throw new ArgumentException("q + r + s must be 0");
|
||||
Q = q;
|
||||
R = r;
|
||||
S = s;
|
||||
X = q;
|
||||
Y = r;
|
||||
Z = s;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user