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