Struct RelevantGhostForConnection
A connection-ghost pair, used to populate the GhostRelevancy set at runtime, by declaring which ghosts are relevant for a given connection. Behaviour is dependent upon on GhostRelevancyMode.
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public struct RelevantGhostForConnection : IEquatable<RelevantGhostForConnection>, IComparable<RelevantGhostForConnection>
Constructors
| Name | Description |
|---|---|
| RelevantGhostForConnection(int, int) | Construct a new instance with the given connection id and ghost |
Fields
| Name | Description |
|---|---|
| Connection | The connection for which this ghost is relevant. |
| Ghost | the ghost id of the entity. |
Methods
| Name | Description |
|---|---|
| CompareTo(RelevantGhostForConnection) | Comparison operator, used for sorting. |
| Equals(RelevantGhostForConnection) | return whenever the |
| GetHashCode() | A hash code suitable to insert the RelevantGhostForConnection into an hashmap or other key-value pair containers. Is guarantee to be unique for the connection, ghost pairs. |