From 6ec4837523395accbb0ed8c9b206daa6882adc1a Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 4 Aug 2017 18:35:53 -0400 Subject: chat stuff and eas failure --- ShiftOS_TheReturn/Story.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ShiftOS_TheReturn') 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 StoryComplete; public static List CurrentObjectives { get; private set; } + public static event Action FailureRequested; + + public static void DisplayFailure(string message) + { + FailureRequested?.Invoke(message); + } + + public static void PushObjective(string name, string desc, Func completeFunc, Action onComplete) { -- cgit v1.2.3