Does it make sense to sum and substract the floors on the sum and substract operatios, on the GridPosition class?
public static GridPosition operator +(GridPosition a, GridPosition b)
{
return new GridPosition(a.x + b.x, a.z + b.z, a.floor + b.floor);
}
I mean, it doesnt make sense for me to sum or substract grid positions in different floors, so I would check if the floor is the same, just return that; if the floor is different, maybe throw an exception or an error.
What do you think?