From b2490f9c1fdc150473f87ed67e258fbff6814685 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 7 Mar 2021 13:30:14 +0800 Subject: [PATCH] cleanup --- Assets/Mirror/Runtime/NetworkServer.cs | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index c6b32dfb6..e5c0e9c14 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -649,13 +649,7 @@ public static void RegisterHandler(Action handler, bool handlers[msgType] = MessagePacking.WrapHandler(handler, requireAuthentication); } - /// - /// Register a handler for a particular message type. - /// There are several system message types which you can add handlers for. You can also add your own message types. - /// - /// Message type - /// Function handler which will be invoked when this message type is received. - /// True if the message requires an authenticated connection + /// Register a handler for message type T. Most should require authentication. [Obsolete("Use RegisterHandler(Action(Action handler, bool requireAuthentication = true) where T : struct, NetworkMessage @@ -663,13 +657,7 @@ public static void RegisterHandler(Action handler, bool requireAuthenticat RegisterHandler((_, value) => { handler(value); }, requireAuthentication); } - /// - /// Replaces a handler for a particular message type. - /// See also RegisterHandler(T)(Action(NetworkConnection, T), bool) - /// - /// Message type - /// Function handler which will be invoked when this message type is received. - /// True if the message requires an authenticated connection + /// Replace a handler for message type T. Most should require authentication. public static void ReplaceHandler(Action handler, bool requireAuthentication = true) where T : struct, NetworkMessage {