mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
add TODO
This commit is contained in:
parent
0949c9d875
commit
b2892e7e1a
@ -301,6 +301,7 @@ public static void Send<T>(T message, int channelId = Channels.DefaultReliable)
|
|||||||
|
|
||||||
// message handlers ////////////////////////////////////////////////////
|
// message handlers ////////////////////////////////////////////////////
|
||||||
/// <summary>Register a handler for a message type T. Most should require authentication.</summary>
|
/// <summary>Register a handler for a message type T. Most should require authentication.</summary>
|
||||||
|
// TODO remove. don't need redundant NetworkConnection parameter. it's always .connection anyway.
|
||||||
public static void RegisterHandler<T>(Action<NetworkConnection, T> handler, bool requireAuthentication = true)
|
public static void RegisterHandler<T>(Action<NetworkConnection, T> handler, bool requireAuthentication = true)
|
||||||
where T : struct, NetworkMessage
|
where T : struct, NetworkMessage
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user