Start of hex cell

This commit is contained in:
zac johnson
2020-12-10 16:48:34 -07:00
parent 927fd0f64d
commit 230e97e3df
3 changed files with 42 additions and 4 deletions

View File

@@ -1,7 +1,20 @@
namespace ConsoleApp
using System;
using System.Collections.Generic;
namespace ConsoleApp.Maps
{
public class HexCell
public struct HexCell
{
public int Q { get; }
public int R { get; }
public int S { 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;
}
}
}