Better Airdrop Production

This change allows the Production class and its children to take in multiple actors to be produced.
This is needed for #7055 so that the units produced can exit in an orderly fashion.
2014/12/13 上午12:43 於 "penev92" <notifications@github.com> 寫道：

> In OpenRA.Mods.RA/ProductionAirdrop.cs
> <https://github.com/OpenRA/OpenRA/pull/7061#discussion-diff-21755976>:
>
> > +				var a = w.CreateActor(actorType, new TypeDictionary
> > +				{
> > +					new CenterPositionInit(w.Map.CenterOfCell(startPos) + new WVec(WRange.Zero, WRange.Zero, altitude)),
> > +					new OwnerInit(owner),
> > +					new FacingInit(64)
> > +				});
> > +
> > +				var cargoBay = a.TraitOrDefault<Cargo>();
> > +
> > +				if (cargoBay == null)
> > +				{
> > +					throw new Exception("Invalid airdrop actor: missing trait <Cargo>");
> > +				}
> > +
> > +				Action func = null;
> > +				func = new Action(() =>
>
> Never mind then.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/OpenRA/OpenRA/pull/7061/files#r21755976>.
>