Files
sbox-public/engine/Sandbox.Engine/Scene/Networking/Containers/INetworkDeltaSnapshot.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

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 );
}