public void StaticDiagonalDiff() { CubicHexCoord cubic = CubicHexCoord.DiagonalDiff(DiagonalEnum.ESE); Assert.That(cubic.x, Is.EqualTo(1)); Assert.That(cubic.y, Is.EqualTo(-2)); Assert.That(cubic.z, Is.EqualTo(1)); }
public MovementHelper Diagonal(DiagonalEnum direction, params Validator[] validators) { return(Collect(CubicHexCoord.DiagonalDiff(direction), validators: validators)); }