From c4ca2734faae3dff1e7fe3b7460c8e2e13257789 Mon Sep 17 00:00:00 2001 From: vis2k Date: Sun, 13 Nov 2022 16:13:22 +0100 Subject: [PATCH] NetworkServer.GetEntitySerializationForConnection renamed to SerializeForConnection (shorter) --- Assets/Mirror/Core/NetworkServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Mirror/Core/NetworkServer.cs b/Assets/Mirror/Core/NetworkServer.cs index 609609760..e98f7e5b6 100644 --- a/Assets/Mirror/Core/NetworkServer.cs +++ b/Assets/Mirror/Core/NetworkServer.cs @@ -1681,7 +1681,7 @@ public static void RebuildObservers(NetworkIdentity identity, bool initialize) // broadcasting //////////////////////////////////////////////////////// // helper function to get the right serialization for a connection - static NetworkWriter GetEntitySerializationForConnection(NetworkIdentity identity, NetworkConnectionToClient connection) + static NetworkWriter SerializeForConnection(NetworkIdentity identity, NetworkConnectionToClient connection) { // get serialization for this entity (cached) // IMPORTANT: int tick avoids floating point inaccuracy over days/weeks @@ -1724,7 +1724,7 @@ static void BroadcastToConnection(NetworkConnectionToClient connection) { // get serialization for this entity viewed by this connection // (if anything was serialized this time) - NetworkWriter serialization = GetEntitySerializationForConnection(identity, connection); + NetworkWriter serialization = SerializeForConnection(identity, connection); if (serialization != null) { EntityStateMessage message = new EntityStateMessage