mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-02 11:28:19 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
23 lines
858 B
C#
23 lines
858 B
C#
namespace Sandbox.Network;
|
|
|
|
/// <summary>
|
|
/// Can be implemented on a type so that when used in conjunction with <see cref="SyncAttribute">[Sync]</see> you
|
|
/// can write and read directly from delta snapshots.
|
|
/// </summary>
|
|
internal interface INetworkDeltaSnapshot
|
|
{
|
|
/// <summary>
|
|
/// Write to a <see cref="DeltaSnapshot"/>.
|
|
/// </summary>
|
|
/// <param name="slot">The parent slot in the network table for this property</param>
|
|
/// <param name="snapshot">The snapshot we're writing to</param>
|
|
void WriteSnapshotState( int slot, LocalSnapshotState snapshot );
|
|
|
|
/// <summary>
|
|
/// Read from a <see cref="DeltaSnapshot"/>.
|
|
/// </summary>
|
|
/// <param name="slot">The parent slot in the network table for this property</param>
|
|
/// <param name="snapshot">The snapshot we're reading from</param>
|
|
void ReadSnapshot( int slot, DeltaSnapshot snapshot );
|
|
}
|