This commit is contained in:
vis2k 2021-03-09 16:16:55 +08:00
parent 7ae1496b88
commit fe3e365c7d

View File

@ -811,16 +811,10 @@ bool OnSerializeSafely(NetworkBehaviour comp, NetworkWriter writer, bool initial
return result; return result;
} }
/// <summary> // serialize all components using dirtyComponentsMask
/// serialize all components using dirtyComponentsMask // check ownerWritten/observersWritten to know if anything was written
/// <para>check ownerWritten/observersWritten to know if anything was written</para> // We pass dirtyComponentsMask into this function so that we can check
/// <para>We pass dirtyComponentsMask into this function so that we can check if any Components are dirty before creating writers</para> // if any Components are dirty before creating writers
/// </summary>
/// <param name="initialState"></param>
/// <param name="ownerWriter"></param>
/// <param name="ownerWritten"></param>
/// <param name="observersWriter"></param>
/// <param name="observersWritten"></param>
internal void OnSerializeAllSafely(bool initialState, NetworkWriter ownerWriter, out int ownerWritten, NetworkWriter observersWriter, out int observersWritten) internal void OnSerializeAllSafely(bool initialState, NetworkWriter ownerWriter, out int ownerWritten, NetworkWriter observersWriter, out int observersWritten)
{ {
// clear 'written' variables // clear 'written' variables