Files
OpenRA/OpenRa.Game/Traits/Tree.cs
2009-12-05 14:23:59 +13:00

21 lines
379 B
C#

using System.Collections.Generic;
using OpenRa.Game.Graphics;
namespace OpenRa.Game.Traits
{
class Tree : IRender
{
Sprite Image;
public Tree(Sprite treeImage)
{
Image = treeImage;
}
public IEnumerable<Tuple<Sprite, float2, int>> Render(Actor self)
{
yield return Tuple.New(Image, Game.CellSize * (float2)self.Location, 0);
}
}
}