15 lines
382 B
C#
15 lines
382 B
C#
using GeometryTD.Definition;
|
|
|
|
namespace GeometryTD.CustomComponent
|
|
{
|
|
internal sealed class BossDeadPhaseEndCondition : IPhaseEndCondition
|
|
{
|
|
public PhaseEndType EndType => PhaseEndType.BossDead;
|
|
|
|
public bool ShouldExit(in PhaseEndConditionContext context)
|
|
{
|
|
return context.IsPhaseSpawnCompleted && !context.HasAliveBoss;
|
|
}
|
|
}
|
|
}
|