Struct PlayerScopeComponent
Namespace: ReadyM.Api.Multiplayer.ECS.Components
Assembly: ReadyM.Api.Multiplayer.dll
Holds the ID of the global player entity.
public struct PlayerScopeComponent : IIndexedComponent<PlayerId>, IComponent, INetSerializable
Implements
IIndexedComponent<PlayerId>, IComponent, INetSerializable
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
PlayerId
public PlayerId PlayerId { get; set; }
Property Value
Methods
Assign(in PlayerScopeComponent)
public void Assign(in PlayerScopeComponent value)
Parameters
value PlayerScopeComponent
Deserialize(NetDataReader)
public void Deserialize(NetDataReader reader)
Parameters
reader NetDataReader
GetChangeComponent()
public Type GetChangeComponent()
Returns
GetIndexedValue()
Returns the value of the indexed component field.
public PlayerId GetIndexedValue()
Returns
PlayerIdNotifyChanged(int)
public void PlayerIdNotifyChanged(int id)
Parameters
id int
Serialize(NetDataWriter)
public void Serialize(NetDataWriter writer)
Parameters
writer NetDataWriter