Add new trait interface INotifyTransformed and use it in Allies 04 to make the transport remove its cargo capacity after it unloads its passengers

This commit is contained in:
Scott_NZ
2013-01-27 14:25:17 +13:00
parent fba5b80980
commit 44215ae6f1
4 changed files with 42 additions and 32 deletions

View File

@@ -68,6 +68,9 @@ namespace OpenRA.Mods.RA.Activities
var a = w.CreateActor( ToActor, init );
foreach (var nt in self.TraitsImplementing<INotifyTransformed>())
nt.OnTransformed(a);
if (selected)
w.Selection.Add(w, a);
});