Skip to main content
Version: 0.4.1

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​

PlayerId

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​

Type

GetIndexedValue()​

Returns the value of the indexed component field.

public PlayerId GetIndexedValue()

Returns​

PlayerId

PlayerIdNotifyChanged(int)​

public void PlayerIdNotifyChanged(int id)

Parameters​

id int

Serialize(NetDataWriter)​

public void Serialize(NetDataWriter writer)

Parameters​

writer NetDataWriter

  • Properties
    • PlayerId
  • Methods
    • Assign(in PlayerScopeComponent)
    • Deserialize(NetDataReader)
    • GetChangeComponent()
    • GetIndexedValue()
    • PlayerIdNotifyChanged(int)
    • Serialize(NetDataWriter)