Add sugar cane rendering

This commit is contained in:
Drew DeVault 2015-06-03 21:36:21 -06:00
parent f198f0322f
commit a8307ae28e
3 changed files with 19 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -0,0 +1,18 @@
using System;
using TrueCraft.Core.Logic.Blocks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using TrueCraft.API.Logic;
namespace TrueCraft.Client.Rendering.Blocks
{
public class SugarcaneRenderer : FlatQuadRenderer
{
static SugarcaneRenderer()
{
BlockRenderer.RegisterRenderer(SugarcaneBlock.BlockID, new SugarcaneRenderer());
}
protected override Vector2 TextureMap { get { return new Vector2(9, 4); } }
}
}

View File

@ -112,6 +112,7 @@
<Compile Include="Rendering\Blocks\TallGrassRenderer.cs" />
<Compile Include="Rendering\FlatQuadRenderer.cs" />
<Compile Include="Rendering\Blocks\LadderRenderer.cs" />
<Compile Include="Rendering\Blocks\SugarcaneRenderer.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<ItemGroup>