21 lines
379 B
C#
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);
|
|
}
|
|
}
|
|
}
|