aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/TutorialManager.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-01-17 17:26:27 -0500
committerMichael <[email protected]>2017-01-17 17:26:27 -0500
commit18f93056b7d882b4dcce4d3afacd1ba6d37d94ac (patch)
treed56af63f2b6efe5f939bd072d2b7531923595ccd /ShiftOS_TheReturn/TutorialManager.cs
parentb348a76db785c040d957f055ba9cc8569bf0c285 (diff)
downloadshiftos_thereturn-18f93056b7d882b4dcce4d3afacd1ba6d37d94ac.tar.gz
shiftos_thereturn-18f93056b7d882b4dcce4d3afacd1ba6d37d94ac.tar.bz2
shiftos_thereturn-18f93056b7d882b4dcce4d3afacd1ba6d37d94ac.zip
Tutorial backend, deletion of Nancy
I'll probably do a SaaS webadmin tool for the MUD in ASP.NET someday.
Diffstat (limited to 'ShiftOS_TheReturn/TutorialManager.cs')
-rw-r--r--ShiftOS_TheReturn/TutorialManager.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/ShiftOS_TheReturn/TutorialManager.cs b/ShiftOS_TheReturn/TutorialManager.cs
new file mode 100644
index 0000000..1d8943e
--- /dev/null
+++ b/ShiftOS_TheReturn/TutorialManager.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace ShiftOS.Engine
+{
+ public static class TutorialManager
+ {
+ private static ITutorial _tut = null;
+
+ public static void RegisterTutorial(ITutorial tut)
+ {
+ _tut = tut;
+ _tut.OnComplete += (o, a) =>
+ {
+ SaveSystem.CurrentSave.StoryPosition = 2;
+ };
+ }
+
+ public static void StartTutorial()
+ {
+ _tut.Start();
+ }
+ }
+
+ public interface ITutorial
+ {
+ void Start();
+ event EventHandler OnComplete;
+ }
+}