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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user