git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1296 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
@@ -5,25 +5,12 @@ using BluntDirectX.Direct3D;
|
||||
|
||||
namespace OpenRa.Game
|
||||
{
|
||||
class ConstructionYard : Actor
|
||||
class ConstructionYard : Building
|
||||
{
|
||||
Animation animation = new Animation( "fact" );
|
||||
|
||||
public ConstructionYard(float2 location, int palette)
|
||||
public ConstructionYard( int2 location, int palette )
|
||||
: base( "fact", location, palette )
|
||||
{
|
||||
this.renderLocation = location;
|
||||
this.palette = palette;
|
||||
animation.PlayToEnd( "make" );
|
||||
}
|
||||
|
||||
public override Sprite[] CurrentImages
|
||||
{
|
||||
get { return animation.Images; }
|
||||
}
|
||||
|
||||
public override void Tick( World world, double t )
|
||||
{
|
||||
animation.Tick( t );
|
||||
animation.PlayThen( "make", delegate { animation.PlayRepeating( "build" ); } );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user