Mechanism for showing mission objectives in the ingame menu. Fixes #948.
This commit is contained in:
@@ -17,7 +17,6 @@ namespace OpenRA.Mods.RA
|
||||
{
|
||||
public string WinNotification = null;
|
||||
public string LoseNotification = null;
|
||||
|
||||
public object Create(ActorInitializer init) { return new ConquestVictoryConditions(this); }
|
||||
}
|
||||
|
||||
@@ -86,4 +85,19 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public class MustBeDestroyedInfo : TraitInfo<MustBeDestroyed> { }
|
||||
public class MustBeDestroyed { }
|
||||
|
||||
// Provides game mode information for players/observers
|
||||
// Goes on WorldActor - observers don't have a player it can live on
|
||||
public class ConquestObjectivesPanelInfo : ITraitInfo
|
||||
{
|
||||
public string ObjectivesPanel = null;
|
||||
public object Create(ActorInitializer init) { return new ConquestObjectivesPanel(this); }
|
||||
}
|
||||
|
||||
public class ConquestObjectivesPanel : IObjectivesPanel
|
||||
{
|
||||
ConquestObjectivesPanelInfo info;
|
||||
public ConquestObjectivesPanel(ConquestObjectivesPanelInfo info) { this.info = info; }
|
||||
public string ObjectivesPanel { get { return info.ObjectivesPanel; } }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user