This commit is contained in:
vis2k 2021-03-07 13:04:41 +08:00
parent 988bd3a51c
commit 2797253cc4

View File

@ -312,14 +312,7 @@ public static void SendToReady<T>(NetworkIdentity identity, T message, bool incl
} }
} }
/// <summary> /// <summary>Send a message to only clients which are ready including the owner of the NetworkIdentity</summary>
/// Send a message to only clients which are ready including 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 object</param>
/// <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>(NetworkIdentity identity, T message, int channelId) public static void SendToReady<T>(NetworkIdentity identity, T message, int channelId)
where T : struct, NetworkMessage where T : struct, NetworkMessage