NetworkServer.GetEntitySerializationForConnection renamed to SerializeForConnection (shorter)

This commit is contained in:
vis2k 2022-11-13 16:13:22 +01:00
parent 260aaf6f8c
commit c4ca2734fa

View File

@ -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