示例#1
0
 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);
 }
示例#2
0
 protected int GetRotatedFace(int Rotation, int FaceSelection, StructureDefinitions.TileTypes tile)
 {
     int[] sides = GetTileFaces(tile);
     return(ShiftFaceValues(sides, Rotation)[FaceSelection]);
 }