public void RegisterObjective(HealthController objective, ObjectiveMarker.Type type) { if (type == ObjectiveMarker.Type.House) { Houses.Add(objective); } else { Players.Add(objective); } }
public void MarkObjectiveLost(HealthController objective, ObjectiveMarker.Type type) { if (type == ObjectiveMarker.Type.House) { Houses.Remove(objective); if (Houses.Count == 0) { DoDefeat(); } } else { Players.Remove(objective); if (Players.Count == 0) { DoDefeat(); } } }