Class NetworkVarBufferCopyTest.DummyNetVar
Implements
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class NetworkVarBufferCopyTest.DummyNetVar : NetworkVariableBase, IDisposable
Fields
DeltaRead
Declaration
public bool DeltaRead
Field Value
Type | Description |
---|---|
bool |
DeltaWritten
Declaration
public bool DeltaWritten
Field Value
Type | Description |
---|---|
bool |
FieldRead
Declaration
public bool FieldRead
Field Value
Type | Description |
---|---|
bool |
FieldWritten
Declaration
public bool FieldWritten
Field Value
Type | Description |
---|---|
bool |
Methods
ReadDelta(FastBufferReader, bool)
Reads delta from the reader and applies them to the internal value
Declaration
public override void ReadDelta(FastBufferReader reader, bool keepDirtyDelta)
Parameters
Type | Name | Description |
---|---|---|
FastBufferReader | reader | The stream to read the delta from |
bool | keepDirtyDelta | Whether or not the delta should be kept as dirty or consumed |
Overrides
ReadField(FastBufferReader)
Reads the complete state from the reader and applies it
Declaration
public override void ReadField(FastBufferReader reader)
Parameters
Type | Name | Description |
---|---|---|
FastBufferReader | reader | The stream to read the state from |
Overrides
WriteDelta(FastBufferWriter)
Writes the dirty changes, that is, the changes since the variable was last dirty, to the writer
Declaration
public override void WriteDelta(FastBufferWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FastBufferWriter | writer | The stream to write the dirty changes to |
Overrides
WriteField(FastBufferWriter)
Writes the complete state of the variable to the writer
Declaration
public override void WriteField(FastBufferWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FastBufferWriter | writer | The stream to write the state to |