From 309f9fe361af7b0a508770951af7c548dfca78ad Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Sat, 25 Jun 2016 21:22:46 -0400 Subject: Added online Hacker Battles with matchmaking system It's untested, but in theory it'll all work perfectly. --- source/WindowsFormsApplication1/Engine/Lua_Interp.cs | 12 ------------ source/WindowsFormsApplication1/Engine/SaveSystem.cs | 1 + 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'source/WindowsFormsApplication1/Engine') diff --git a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs index ab87fa7..c4a9162 100644 --- a/source/WindowsFormsApplication1/Engine/Lua_Interp.cs +++ b/source/WindowsFormsApplication1/Engine/Lua_Interp.cs @@ -249,18 +249,6 @@ namespace ShiftOS return new Color(); } }); - mod.speechrec_create = new Func(() => - { - return new SpeechListener(); - }); - mod.speechrec_on_recognize = new Action((obj, func) => - { - obj.OnRecognize += (object s, EventArgs a) => - { - mod($"{func}('{s.ToString()}')"); - }; - obj.Engine.RecognizeAsync(); - }); mod.get_desktop_session = new Func
(() => { return API.CurrentSession; diff --git a/source/WindowsFormsApplication1/Engine/SaveSystem.cs b/source/WindowsFormsApplication1/Engine/SaveSystem.cs index aab5ab2..9381d9b 100644 --- a/source/WindowsFormsApplication1/Engine/SaveSystem.cs +++ b/source/WindowsFormsApplication1/Engine/SaveSystem.cs @@ -34,6 +34,7 @@ namespace SaveSystem public int PriceDivider = 1; public string CloudID = ""; public List CompletedNets = new List(); + public ShiftOS.Online.Hacking.Network MyOnlineNetwork = new ShiftOS.Online.Hacking.Network(); } public class PrivateBitnoteAddress -- cgit v1.2.3