Skip to content

Commit b2b961a

Browse files
committed
Renamed SyncedVar flush methods
1 parent 3aa3ca3 commit b2b961a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

MLAPI/MonoBehaviours/Core/NetworkedBehaviour.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ internal void OnSyncVarUpdate(object value, int fieldIndex)
500500
syncedVarFields[fieldIndex].HookMethod.Invoke(this, null);
501501
}
502502

503-
internal void FlushToClient(uint clientId)
503+
internal void FlushSyncedVarsToClient(uint clientId)
504504
{
505505
//This NetworkedBehaviour has no SyncVars
506506
if (syncedVarFields.Count == 0)

MLAPI/MonoBehaviours/Core/NetworkedObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,11 @@ internal void SetFormattedSyncedVarData(BitReader reader)
343343
}
344344

345345
//Flushes all syncVars to client
346-
internal void FlushToClient(uint clientId)
346+
internal void FlushSyncedVarsToClient(uint clientId)
347347
{
348348
for (int i = 0; i < childNetworkedBehaviours.Count; i++)
349349
{
350-
childNetworkedBehaviours[i].FlushToClient(clientId);
350+
childNetworkedBehaviours[i].FlushSyncedVarsToClient(clientId);
351351
}
352352
}
353353

0 commit comments

Comments
 (0)