remove unused CompositeActivity

This commit is contained in:
tovl
2019-02-27 21:37:30 +01:00
committed by Paul Chote
parent 6d51d3988c
commit 35dba74ded

View File

@@ -285,29 +285,6 @@ namespace OpenRA.Activities
} }
} }
/// <summary>
/// In contrast to the base activity class, which is responsible for running its children itself,
/// composite activities rely on the actor's activity-running logic for their children.
/// </summary>
public abstract class CompositeActivity : Activity
{
/// <summary>
/// The getter will return the first non-null value of either child, next or parent activity, in that order, or ultimately null.
/// </summary>
public override Activity NextActivity
{
get
{
if (ChildActivity != null)
return ChildActivity;
else if (NextInQueue != null)
return NextInQueue;
else
return ParentActivity;
}
}
}
public static class ActivityExts public static class ActivityExts
{ {
public static IEnumerable<Target> GetTargetQueue(this Actor self) public static IEnumerable<Target> GetTargetQueue(this Actor self)