WEAF roof fixed

This commit is contained in:
Chris Forbes
2009-10-11 09:32:24 +13:00
parent f79d52be6a
commit a9af3be206
2 changed files with 6 additions and 40 deletions

View File

@@ -88,7 +88,6 @@ namespace OpenRa.Game
case "tsla":
case "ftur":
case "facf":
case "weaf":
case "syrf":
case "spef":
case "domf":
@@ -96,6 +95,7 @@ namespace OpenRa.Game
traits.Add( new Traits.RenderBuilding( this ) );
break;
case "weap":
case "weaf":
traits.Add( new Traits.Building( this ) );
traits.Add( new Traits.RenderWarFactory( this ) );
break;
@@ -206,7 +206,7 @@ namespace OpenRa.Game
public RenderWarFactory( Actor self )
: base( self )
{
roof = new Animation( self.unitInfo.Name );
roof = new Animation( self.unitInfo.Image ?? self.unitInfo.Name );
anim.PlayThen( "make", () =>
{
doneBuilding = true;
@@ -458,39 +458,5 @@ namespace OpenRa.Game
yield return Pair.New( Image, 24 * (float2)self.Location );
}
}
//class WarFactory : Building
//{
// Animation roof;
// public WarFactory( int2 location, Player owner, Game game )
// : base( "weap", location, owner, game )
// {
// animation.PlayThen( "make", () =>
// {
// roof = new Animation( "weap" );
// animation.PlayRepeating( "idle" );
// roof.PlayRepeating( "idle-top" );
// } );
// }
// public override IEnumerable<Pair<Sprite, float2>> CurrentImages
// {
// get
// {
// return ( roof == null )
// ? base.CurrentImages
// : ( base.CurrentImages.Concat(
// new[] { Pair.New( roof.Image, 24 * (float2)location ) } ) );
// }
// }
// public override void Tick( Game game, int t )
// {
// base.Tick( game, t );
// if( roof != null ) roof.Tick( t );
// }
//}
}
}