Add sugar cane rendering
This commit is contained in:
parent
f198f0322f
commit
a8307ae28e
Binary file not shown.
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
18
TrueCraft.Client/Rendering/Blocks/SugarcaneRenderer.cs
Normal file
18
TrueCraft.Client/Rendering/Blocks/SugarcaneRenderer.cs
Normal 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); } }
|
||||
}
|
||||
}
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user