aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-06-10 21:36:18 +0100
committerGitHub <[email protected]>2017-06-10 21:36:18 +0100
commit54b6d63c61fd5e687a26dd63d353713053e0c9d2 (patch)
treec830e5e00966fb3345d1e3fe511b559c2ab871d2 /TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
parentf7a0abb9c8a8fb4235b185d8bf4ea725d53270fe (diff)
parent6a97a95fc7b37f295119357bf88bec13603fbf5b (diff)
downloadhistacom2-54b6d63c61fd5e687a26dd63d353713053e0c9d2.tar.gz
histacom2-54b6d63c61fd5e687a26dd63d353713053e0c9d2.tar.bz2
histacom2-54b6d63c61fd5e687a26dd63d353713053e0c9d2.zip
Merge pull request #87 from Alex-TIMEHACK/master
Done basically Nothing
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs22
1 files changed, 18 insertions, 4 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
index 1822c43..4f12ec7 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
+using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Media;
@@ -10,23 +11,36 @@ using TimeHACK.Engine;
namespace TimeHACK.OS.Win95.Win95Apps.Story
{
- class Hack1
+ class Hack1 : NormalHack
{
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);
+
+ Thread theThread = new Thread(startObjectMAIN);
+
+ theThread.Start();
+
+ }
+
+ public void startObjectMAIN()
+ {
+ SoundPlayer startsound;
term.WriteLine("192.168.0.1 Connecting...");
-
+
// Play Dial-up Sound
Stream audio = Properties.Resources.modem_dial;
startsound = new SoundPlayer(audio);
- startsound.PlaySync();
+ startsound.Play();
+ Thread.Sleep(5000);
+ startsound.Stop();
term.WriteLine("192.168.0.1 Connected.");
}
}