From 183de927d0986f5cc74ca52265683594b10eab96 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 7 Mar 2021 12:42:24 +0800 Subject: [PATCH] NetworkServer: clean up --- Assets/Mirror/Runtime/NetworkServer.cs | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index 6ef3becd9..3d3b3ca42 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -12,27 +12,17 @@ public static class NetworkServer static bool initialized; public static int maxConnections; - /// - /// The connection to the host mode client (if any). - /// + /// Connection to host mode client (if any) public static NetworkConnectionToClient localConnection { get; private set; } - /// - /// True is a local client is currently active on the server. - /// This will be true for "Hosts" on hosted server games. - /// + /// True is a local client is currently active on the server public static bool localClientActive => localConnection != null; - /// - /// A list of local connections on the server. - /// + /// Dictionary of all server connections, with connectionId as key public static Dictionary connections = new Dictionary(); - /// - /// Dictionary of the message handlers registered with the server. - /// The key to the dictionary is the message Id. - /// + /// Message Handlers dictionary, with mesageId as key. static Dictionary handlers = new Dictionary();