diff options
| author | lempamo <[email protected]> | 2017-06-10 19:44:10 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-06-10 19:44:10 -0400 |
| commit | 600f04badd2a2194400a0d707a2fc86c15435265 (patch) | |
| tree | c830e5e00966fb3345d1e3fe511b559c2ab871d2 /TimeHACK.Main/OS | |
| parent | 46cca8051d340398bcab1f18d76d1650a746a5b3 (diff) | |
| parent | 54b6d63c61fd5e687a26dd63d353713053e0c9d2 (diff) | |
| download | histacom2-600f04badd2a2194400a0d707a2fc86c15435265.tar.gz histacom2-600f04badd2a2194400a0d707a2fc86c15435265.tar.bz2 histacom2-600f04badd2a2194400a0d707a2fc86c15435265.zip | |
Merge remote-tracking branch 'refs/remotes/TimeHACKDevs/master'
Diffstat (limited to 'TimeHACK.Main/OS')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Story/Hack1.cs | 22 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/Story/NormalHack.cs | 15 | ||||
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs | 2 |
3 files changed, 35 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."); } } diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/Story/NormalHack.cs b/TimeHACK.Main/OS/Win95/Win95Apps/Story/NormalHack.cs new file mode 100644 index 0000000..b5c63a6 --- /dev/null +++ b/TimeHACK.Main/OS/Win95/Win95Apps/Story/NormalHack.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Reflection; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace TimeHACK.OS.Win95.Win95Apps.Story +{ + class NormalHack + { + + } +} diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs index 24cb7dd..d25b409 100644 --- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs +++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs @@ -10,6 +10,8 @@ using System.Windows.Forms; using System.Media; using System.IO; using System.Threading; +using System.Reflection; +using System.Linq.Expressions; namespace TimeHACK.OS.Win95.Win95Apps { |
