mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
SyncObject cleanup
This commit is contained in:
parent
debcb400fe
commit
15d595fe41
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user