diff options
Diffstat (limited to 'ShiftOS_TheReturn')
| -rw-r--r-- | ShiftOS_TheReturn/Story.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/Story.cs b/ShiftOS_TheReturn/Story.cs index c62d3bd..674b782 100644 --- a/ShiftOS_TheReturn/Story.cs +++ b/ShiftOS_TheReturn/Story.cs @@ -95,6 +95,14 @@ namespace ShiftOS.Engine public static StoryContext Context { get; private set; } public static event Action<string> StoryComplete; public static List<Objective> CurrentObjectives { get; private set; } + public static event Action<string> FailureRequested; + + public static void DisplayFailure(string message) + { + FailureRequested?.Invoke(message); + } + + public static void PushObjective(string name, string desc, Func<bool> completeFunc, Action onComplete) { |
