From 046cfe3d4f2ca73da958767ad7adf0e7ab10b085 Mon Sep 17 00:00:00 2001 From: Derek S <44935661+Derek-R-S@users.noreply.github.com> Date: Mon, 5 Apr 2021 23:19:51 -0500 Subject: [PATCH] Moved more methods into extra script --- ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs | 4 ---- .../LRM/Program/ProgramExtra.cs | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs index 62fa926..1fa6f10 100644 --- a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs +++ b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/Program.cs @@ -16,10 +16,6 @@ namespace LightReflectiveMirror partial class Program { public static void Main(string[] args) => new Program().MainAsync().GetAwaiter().GetResult(); - - public int GetConnections() => _currentConnections.Count; - public TimeSpan GetUptime() => DateTime.Now - _startupTime; - public int GetPublicRoomCount() => _relay.rooms.Where(x => x.isPublic).Count(); public List GetRooms() => _relay.rooms; public async Task MainAsync() diff --git a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/ProgramExtra.cs b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/ProgramExtra.cs index b2d830a..8d25fd1 100644 --- a/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/ProgramExtra.cs +++ b/ServerProject-DONT-IMPORT-INTO-UNITY/LRM/Program/ProgramExtra.cs @@ -5,6 +5,10 @@ namespace LightReflectiveMirror partial class Program { + public int GetConnections() => _currentConnections.Count; + public TimeSpan GetUptime() => DateTime.Now - _startupTime; + public int GetPublicRoomCount() => _relay.rooms.Where(x => x.isPublic).Count(); + static void WriteLogMessage(string message, ConsoleColor color = ConsoleColor.White, bool oneLine = false) { Console.ForegroundColor = color;