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 {