aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
blob: 1822c434420c7d889febcacf61aba2bdf3eb819b (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.IO;
using System.Linq;
using System.Media;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using TimeHACK.Engine;

namespace TimeHACK.OS.Win95.Win95Apps.Story
{
    class Hack1
    {
        WinClassicTerminal term = new WinClassicTerminal();
        WindowManager wm = new WindowManager();
        private SoundPlayer startsound;

        // This is the very first story script!
        public void startObjective()
        {
            
            wm.startWin95(term, "MS-DOS Prompt", null, true, true);
            term.WriteLine("192.168.0.1 Connecting...");
            
            // Play Dial-up Sound
            Stream audio = Properties.Resources.modem_dial;
            startsound = new SoundPlayer(audio);
            startsound.PlaySync();
            term.WriteLine("192.168.0.1 Connected.");
        }
    }
}