mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
cleanu
This commit is contained in:
parent
7ae1496b88
commit
fe3e365c7d
@ -811,16 +811,10 @@ bool OnSerializeSafely(NetworkBehaviour comp, NetworkWriter writer, bool initial
|
||||
return result;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// serialize all components using dirtyComponentsMask
|
||||
/// <para>check ownerWritten/observersWritten to know if anything was written</para>
|
||||
/// <para>We pass dirtyComponentsMask into this function so that we can check if any Components are dirty before creating writers</para>
|
||||
/// </summary>
|
||||
/// <param name="initialState"></param>
|
||||
/// <param name="ownerWriter"></param>
|
||||
/// <param name="ownerWritten"></param>
|
||||
/// <param name="observersWriter"></param>
|
||||
/// <param name="observersWritten"></param>
|
||||
// serialize all components using dirtyComponentsMask
|
||||
// check ownerWritten/observersWritten to know if anything was written
|
||||
// We pass dirtyComponentsMask into this function so that we can check
|
||||
// if any Components are dirty before creating writers
|
||||
internal void OnSerializeAllSafely(bool initialState, NetworkWriter ownerWriter, out int ownerWritten, NetworkWriter observersWriter, out int observersWritten)
|
||||
{
|
||||
// clear 'written' variables
|
||||
|
Loading…
Reference in New Issue
Block a user