Struct SpawnedGhost
Struct used to uniquely identify a ghost given its id and spawning time.
Implements
Inherited Members
Namespace: Unity.NetCode
Assembly: solution.dll
Syntax
public struct SpawnedGhost : IEquatable<SpawnedGhost>
Constructors
Name | Description |
---|---|
SpawnedGhost(int, NetworkTick) | Construct a SpawnedEntity using the ghost identifier and the spawn tick> |
SpawnedGhost(in GhostInstance) | Construct a SpawnedEntity from a GhostInstance |
Fields
Name | Description |
---|---|
ghostId | The id assigned to the ghost by the server |
spawnTick | The tick at which the ghost has been spawned by the server |
Methods
Name | Description |
---|---|
Equals(SpawnedGhost) | The SpawnedGhost are identical if both id and tick match. |
GetHashCode() | Produce the hash code for the SpawnedGhost. |