splitting traits into own files

This commit is contained in:
Chris Forbes
2009-10-13 21:11:21 +13:00
parent 9af7b09e1d
commit 3b1558d678
15 changed files with 435 additions and 328 deletions

View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IjwFramework.Types;
using OpenRa.Game.Graphics;
namespace OpenRa.Game.Traits
{
class RenderBuilding : RenderSimple
{
public RenderBuilding(Actor self)
: base(self)
{
anim.PlayThen("make", () => anim.PlayRepeating("idle"));
}
public override IEnumerable<Pair<Sprite, float2>> Render(Actor self)
{
yield return Pair.New(anim.Image, 24f * (float2)self.Location);
}
}
}