示例#1
0
 public Coord WithOffset(Coord coord)
 {
     return(new Coord {
         x = x + coord.x, y = y + coord.y, z = z + coord.z
     });
 }
示例#2
0
 private bool MakeAOInner(Coord coord, Coord.Direction2 dir)
 {
     return(AnyBlockAt(coord.WithOffset(dir.coord)) ||
            AnyBlockAt(coord.WithOffset(dir.Devide(0).coord)) ||
            AnyBlockAt(coord.WithOffset(dir.Devide(1).coord)));
 }
示例#3
0
 private bool IsNormalCubeBeside(Coord coord, Coord.Direction1 offset)
 {
     return(AnyBlockAt(coord.WithOffset(offset.coord)));
 }
示例#4
0
 protected abstract int GetBlockColor(Coord coord);
示例#5
0
 protected abstract bool AnyBlockAt(Coord coord);
示例#6
0
 private byte GetLightnessOnFace(Coord coord, int face)
 {
     return(14);
 }