Support for updating objectives without flashing the objectives button. Added a secondary objective: lose fewer than 100 units.

This commit is contained in:
Scott_NZ
2012-10-11 22:55:02 +13:00
parent d44d9f67f2
commit 8c3aabb215
4 changed files with 37 additions and 17 deletions

View File

@@ -31,9 +31,11 @@ namespace OpenRA.Mods.RA.Missions
public enum ObjectiveType { Primary, Secondary }
public enum ObjectiveStatus { Inactive, InProgress, Completed, Failed }
public delegate void ObjectivesUpdatedEventHandler(bool notify);
public interface IHasObjectives
{
event Action OnObjectivesUpdated;
event ObjectivesUpdatedEventHandler OnObjectivesUpdated;
IEnumerable<Objective> Objectives { get; }
}