Class ManagedNetworkSerializableType
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class ManagedNetworkSerializableType : INetworkSerializable, IEquatable<ManagedNetworkSerializableType>
Fields
Embedded
Declaration
public EmbeddedManagedNetworkSerializableType Embedded
Field Value
| Type | Description |
|---|---|
| EmbeddedManagedNetworkSerializableType |
InMemoryValue
Declaration
public int InMemoryValue
Field Value
| Type | Description |
|---|---|
| int |
Ints
Declaration
public int[] Ints
Field Value
| Type | Description |
|---|---|
| int[] |
Str
Declaration
public string Str
Field Value
| Type | Description |
|---|---|
| string |
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
Equals(ManagedNetworkSerializableType)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(ManagedNetworkSerializableType other)
Parameters
| Type | Name | Description |
|---|---|---|
| ManagedNetworkSerializableType | other | An object to compare with this object. |
Returns
| Type | Description |
|---|---|
| bool | true if the current object is equal to the |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
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. |