public virtual MeshCreator.TileTexture GetTextureCoordsByDirection(MeshCreator.Direction _direction)//base defaults to first tile
 {
     MeshCreator.TileTexture tile_texture = new MeshCreator.TileTexture
     {
         x = 0,
         y = 0
     };
     return(tile_texture);
 }
示例#2
0
 public override MeshCreator.TileTexture GetTextureCoordsByDirection(MeshCreator.Direction _direction) //base defaults to first tile
 {
     MeshCreator.TileTexture tile_texture = new MeshCreator.TileTexture                                //stone only has one texture
     {
         x = 2,
         y = 2
     };
     return(tile_texture);
 }
    public override MeshCreator.TileTexture GetTextureCoordsByDirection(MeshCreator.Direction direction)
    {
        MeshCreator.TileTexture tile_texture = new MeshCreator.TileTexture();
        switch (direction)
        {
        case MeshCreator.Direction.TOP:
            tile_texture.x = 2;
            tile_texture.y = 1;
            return(tile_texture);

        case MeshCreator.Direction.BOTTOM:
            tile_texture.x = 2;
            tile_texture.y = 1;
            return(tile_texture);
        }
        tile_texture.x = 3;
        tile_texture.y = 1;
        return(tile_texture);
    }