protected int[] GetTileFaces(StructureDefinitions.TileTypes tile) { int[] sides = new int[TileSides.GetLength(1)]; for (int i = 0; i < TileSides.GetLength(1); i++) { sides[i] = TileSides[(int)tile, i]; } return(sides); }
protected int GetRotatedFace(int Rotation, int FaceSelection, StructureDefinitions.TileTypes tile) { int[] sides = GetTileFaces(tile); return(ShiftFaceValues(sides, Rotation)[FaceSelection]); }