Use Action<bool> for objective delegate type

This commit is contained in:
Scott_NZ
2013-02-02 20:44:05 +13:00
parent 7594c4eab2
commit b3fbafad59
6 changed files with 11 additions and 9 deletions

View File

@@ -8,6 +8,7 @@
*/
#endregion
using System;
using System.Collections.Generic;
using OpenRA.Traits;
@@ -30,11 +31,9 @@ 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 ObjectivesUpdatedEventHandler OnObjectivesUpdated;
event Action<bool> OnObjectivesUpdated;
IEnumerable<Objective> Objectives { get; }
}