Move ChildActivity handling into base Activity class.

This commit is contained in:
tovl
2019-04-30 22:45:02 +02:00
committed by teinarss
parent 37379daf3c
commit b9c302a73a
43 changed files with 139 additions and 342 deletions

View File

@@ -51,10 +51,10 @@ namespace OpenRA.Traits
return act;
}
public static Activity SequenceActivities(Actor self, params Activity[] acts)
public static Activity SequenceActivities(params Activity[] acts)
{
return acts.Reverse().Aggregate(
(next, a) => { a.Queue(self, next); return a; });
(next, a) => { a.Queue(next); return a; });
}
}
}