Interface ISnapshotData<T>
Syntax
public interface ISnapshotData<T> : IBufferElementData where T : struct, ISnapshotData<T>
Type Parameters
Properties
Tick
Declaration
Property Value
Type |
Description |
System.UInt32 |
|
Methods
Deserialize(UInt32, ref T, DataStreamReader, ref DataStreamReader.Context, NetworkCompressionModel)
Declaration
void Deserialize(uint tick, ref T baseline, DataStreamReader reader, ref DataStreamReader.Context ctx, NetworkCompressionModel compressionModel)
Parameters
Type |
Name |
Description |
System.UInt32 |
tick |
|
T |
baseline |
|
DataStreamReader |
reader |
|
Unity.Collections.DataStreamReader.Context |
ctx |
|
NetworkCompressionModel |
compressionModel |
|
Interpolate(ref T, Single)
Declaration
void Interpolate(ref T target, float factor)
Parameters
Type |
Name |
Description |
T |
target |
|
System.Single |
factor |
|
PredictDelta(UInt32, ref T, ref T)
Declaration
void PredictDelta(uint tick, ref T baseline1, ref T baseline2)
Parameters
Type |
Name |
Description |
System.UInt32 |
tick |
|
T |
baseline1 |
|
T |
baseline2 |
|
Serialize(Int32, ref T, DataStreamWriter, NetworkCompressionModel)
Declaration
void Serialize(int networkId, ref T baseline, DataStreamWriter writer, NetworkCompressionModel compressionModel)
Parameters
Type |
Name |
Description |
System.Int32 |
networkId |
|
T |
baseline |
|
DataStreamWriter |
writer |
|
NetworkCompressionModel |
compressionModel |
|