SyncObject cleanup

This commit is contained in:
vis2k 2021-03-10 17:25:26 +08:00
parent debcb400fe
commit 15d595fe41

View File

@ -6,44 +6,26 @@ namespace Mirror
/// </summary>
public interface SyncObject
{
/// <summary>
/// true if there are changes since the last flush
/// </summary>
/// <summary>True if there are changes since the last flush</summary>
bool IsDirty { get; }
/// <summary>
/// Discard all the queued changes
/// <para>Consider the object fully synchronized with clients</para>
/// </summary>
/// <summary>Discard all the queued changes</summary>
// Consider the object fully synchronized with clients
void Flush();
/// <summary>
/// Write a full copy of the object
/// </summary>
/// <param name="writer"></param>
/// <summary>Write a full copy of the object</summary>
void OnSerializeAll(NetworkWriter writer);
/// <summary>
/// Write the changes made to the object since last sync
/// </summary>
/// <param name="writer"></param>
/// <summary>Write the changes made to the object since last sync</summary>
void OnSerializeDelta(NetworkWriter writer);
/// <summary>
/// Reads a full copy of the object
/// </summary>
/// <param name="reader"></param>
/// <summary>Reads a full copy of the object</summary>
void OnDeserializeAll(NetworkReader reader);
/// <summary>
/// Reads the changes made to the object since last sync
/// </summary>
/// <param name="reader"></param>
/// <summary>Reads the changes made to the object since last sync</summary>
void OnDeserializeDelta(NetworkReader reader);
/// <summary>
/// Resets the SyncObject so that it can be re-used
/// </summary>
/// <summary>Resets the SyncObject so that it can be re-used</summary>
void Reset();
}
}