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. --- .../Online/Hacking/Objects.cs | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 source/WindowsFormsApplication1/Online/Hacking/Objects.cs (limited to 'source/WindowsFormsApplication1/Online/Hacking/Objects.cs') diff --git a/source/WindowsFormsApplication1/Online/Hacking/Objects.cs b/source/WindowsFormsApplication1/Online/Hacking/Objects.cs new file mode 100644 index 0000000..5012fcc --- /dev/null +++ b/source/WindowsFormsApplication1/Online/Hacking/Objects.cs @@ -0,0 +1,37 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShiftOS.Online.Hacking +{ + [Serializable] + public class Module + { + public string Hostname { get; set; } + public int Grade { get; set; } + public int HP { get; set; } + public int X { get; set; } + public int Y { get; set; } + public int Type { get; set; } //will be converted by the client + } + + [Serializable] + public class Network + { + public string Name { get; set; } + public int Codepoints { get; set; } + public string Description { get; set; } + public int Losses { get; set; } + public int Wins { get; set; } + } + + [Serializable] + public class ServerInfo + { + public string ServerName { get; set; } + public int PlayersAwaitingMatch { get; set; } + public string IPAddress { get; set; } + } +} -- cgit v1.2.3