mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkServer.GetEntitySerializationForConnection renamed to SerializeForConnection (shorter)
This commit is contained in:
parent
260aaf6f8c
commit
c4ca2734fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user