mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
cleanup
This commit is contained in:
parent
a2f4d82dc0
commit
988bd3a51c
@ -268,13 +268,7 @@ public static void SendToAll<T>(T message, int channelId = Channels.DefaultRelia
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Send a message to all clients which have joined the world (are ready).</summary>
|
||||||
/// Send a message to only clients which are ready.
|
|
||||||
/// <para>See <see cref="NetworkConnection.isReady">NetworkConnection.isReady</see></para>
|
|
||||||
/// </summary>
|
|
||||||
/// <typeparam name="T">Message type.</typeparam>
|
|
||||||
/// <param name="message">Message</param>
|
|
||||||
/// <param name="channelId">Transport channel to use</param>
|
|
||||||
// TODO put rpcs into NetworkServer.Update WorldState packet, then finally remove SendToReady!
|
// TODO put rpcs into NetworkServer.Update WorldState packet, then finally remove SendToReady!
|
||||||
public static void SendToReady<T>(T message, int channelId = Channels.DefaultReliable)
|
public static void SendToReady<T>(T message, int channelId = Channels.DefaultReliable)
|
||||||
where T : struct, NetworkMessage
|
where T : struct, NetworkMessage
|
||||||
@ -288,15 +282,7 @@ public static void SendToReady<T>(T message, int channelId = Channels.DefaultRel
|
|||||||
SendToAll(message, channelId, true);
|
SendToAll(message, channelId, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>Send a message to only clients which are ready with option to include the owner of the object identity</summary>
|
||||||
/// Send a message to only clients which are ready with option to include the owner of the object identity.
|
|
||||||
/// <para>See <see cref="NetworkConnection.isReady">NetworkConnection.isReady</see></para>
|
|
||||||
/// </summary>
|
|
||||||
/// <typeparam name="T">Message type.</typeparam>
|
|
||||||
/// <param name="identity">Identity of the owner</param>
|
|
||||||
/// <param name="message">Message</param>
|
|
||||||
/// <param name="includeOwner">Should the owner of the object be included</param>
|
|
||||||
/// <param name="channelId">Transport channel to use</param>
|
|
||||||
// TODO put rpcs into NetworkServer.Update WorldState packet, then finally remove SendToReady!
|
// TODO put rpcs into NetworkServer.Update WorldState packet, then finally remove SendToReady!
|
||||||
public static void SendToReady<T>(NetworkIdentity identity, T message, bool includeOwner = true, int channelId = Channels.DefaultReliable)
|
public static void SendToReady<T>(NetworkIdentity identity, T message, bool includeOwner = true, int channelId = Channels.DefaultReliable)
|
||||||
where T : struct, NetworkMessage
|
where T : struct, NetworkMessage
|
||||||
|
Loading…
Reference in New Issue
Block a user