aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS_TheReturn/TutorialManager.cs
blob: 1d8943ee9b8cf71401a5603e1c6fc4bbed3ee6a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
    }
}