From 63869f056d21b632c04039a70160ed18c184a714 Mon Sep 17 00:00:00 2001 From: baletiballo <75846481+baletiballo@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:44:11 +0100 Subject: [PATCH] Begin refactoring --- .../InteractionEngine/CommunicationEvents.cs | 40 ++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/InteractionEngine/CommunicationEvents.cs b/Assets/Scripts/InteractionEngine/CommunicationEvents.cs index f9b0f0f3..bb0fd649 100644 --- a/Assets/Scripts/InteractionEngine/CommunicationEvents.cs +++ b/Assets/Scripts/InteractionEngine/CommunicationEvents.cs @@ -43,6 +43,44 @@ public static class CommunicationEvents public static int ToolID_new; public static int ToolID_selected;//Script + /* + * Put all of the data about a Server into one class + */ + class KnownServer + { + public string IP; + public ServerStatus currentStatus = ServerStatus.offline; + public bool statusKnown = false; + + public enum ServerStatus + { + offline, + online, + checking, + NoNetworkAddress + } + + public void UpdateStatus() + { + + } + } + + //List of Known Servers + public enum KnownServers + { + last, + newIP, + slot1, + slot2, + slot3, + slot4, + slot5, + selecIP + } + + //Enum.GetNames(typeof(KnownServers)).Length; //Number of known Server slots, to be able to add more later + /* * will be loaded from other config file */ @@ -53,7 +91,7 @@ public static class CommunicationEvents public static string IPslot3 = "- not loaded"; public static string IPslot4 = "- GO TO -> 'Options'"; public static string IPslot5 = "- -> 'Reset Options'"; - public static string selecIP = "- -> PRESS: 'Reset Configurations'";//"GO TO -> 'Options'\n-> 'Reset Options'\nPRESS: \n'Reset Configurations'"; + public static string selecIP = "- -> PRESS: 'Reset Configurations'"; //------ -- GitLab