Added FacingInit and AltitudeInit. Used in Mobile/Aircraft/Husks. Refactored Production, SpyPlane, Paratroopers and LeavesHusk

This commit is contained in:
alzeih
2010-08-02 00:49:26 +12:00
parent 2cc6e197fa
commit 4ea66ea309
8 changed files with 83 additions and 19 deletions

View File

@@ -27,12 +27,13 @@ namespace OpenRA.Mods.RA
[Sync]
public int Facing { get; set; }
public int ROT { get { return 0; } }
public int InitialFacing { get { return 0; } }
public int InitialFacing { get { return 128; } }
public Husk(ActorInitializer init)
{
this.self = init.self;
this.location = init.Get<LocationInit,int2>();
this.Facing = init.Contains<FacingInit>() ? init.Get<FacingInit,int>() : 128;
self.World.WorldActor.traits.Get<UnitInfluence>().Add(self, this);
}