diff options
| author | Michael <[email protected]> | 2017-02-12 10:51:53 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-02-12 10:51:53 -0500 |
| commit | 110438929c855aec8fe1a4cc0b01ccad7ee3807d (patch) | |
| tree | af23414c9a456fccdfb476937160e7ab4254c1d0 /ShiftOS.Server/RemoteTerminal.cs | |
| parent | 88e84f74e1c352b5e24b088ba31cff9eb39964fb (diff) | |
| download | shiftos_thereturn-110438929c855aec8fe1a4cc0b01ccad7ee3807d.tar.gz shiftos_thereturn-110438929c855aec8fe1a4cc0b01ccad7ee3807d.tar.bz2 shiftos_thereturn-110438929c855aec8fe1a4cc0b01ccad7ee3807d.zip | |
More MUD refactoring (I'm almost done!)
Diffstat (limited to 'ShiftOS.Server/RemoteTerminal.cs')
| -rw-r--r-- | ShiftOS.Server/RemoteTerminal.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ShiftOS.Server/RemoteTerminal.cs b/ShiftOS.Server/RemoteTerminal.cs index d28cf8a..6742e44 100644 --- a/ShiftOS.Server/RemoteTerminal.cs +++ b/ShiftOS.Server/RemoteTerminal.cs @@ -26,6 +26,28 @@ namespace ShiftOS.Server } } + [MudRequest("trm_invcmd")] + public static void InvokeCommand(string guid, object contents) + { + Console.WriteLine("Before arg check"); + var args = contents as Dictionary<string, object>; + if (args["guid"] != null && args["command"] != null) + { + Console.WriteLine("arg check finished"); + string cmd = args["command"] as string; + string cGuid = args["guid"] as string; + Console.WriteLine("Before dispatch"); + Program.ClientDispatcher.Server.DispatchTo(new Guid(cGuid), new NetObject("trminvoke", new ServerMessage + { + Name = "trm_invokecommand", + GUID = "server", + Contents = cmd + })); + Console.WriteLine("After dispatch"); + } + + } + [MudRequest("trm_handshake_request")] public static void RequestHandshake(string guid, object contents) { |
