Class TestClass
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class TestClass : INetworkSerializable, IEquatable<TestClass>
Fields
NetworkSerializeCalledOnRead
Declaration
public static bool NetworkSerializeCalledOnRead
Field Value
NetworkSerializeCalledOnWrite
Declaration
public static bool NetworkSerializeCalledOnWrite
Field Value
SomeBool
Declaration
Field Value
SomeInt
Declaration
Field Value
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
Equals(TestClass)
Declaration
public bool Equals(TestClass other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
NetworkSerialize<T>(BufferSerializer<T>)
Provides bi-directional serialization to read and write the desired data to serialize this type.
Declaration
public void NetworkSerialize<T>(BufferSerializer<T> serializer) where T : IReaderWriter
Parameters
Type |
Name |
Description |
BufferSerializer<T> |
serializer |
The serializer to use to read and write the data.
|
Type Parameters
Name |
Description |
T |
Either BufferSerializerReader or BufferSerializerWriter, depending whether the serializer
is in read mode or write mode.
|
Implements