Struct PlayerComponent
Namespace: ReadyM.Wukong.Common.ECS.Components
Assembly: ReadyM.Wukong.Common.dll
public struct PlayerComponent : IComponent, INetSerializable
Implements
Inherited Members
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Properties
Nickname
Globally persisted player nickname. NicknameComponent attached to an area-scoped player character entity is recreated from this value on area change.
public NativeString256 Nickname { get; set; }
Property Value
TeamId
This is the players' Team ID, used in PvP, possibly in the future in creative mode This is separate separated out from the TeamID on the main character which describes directly the team of the underlying game actor.
public int TeamId { get; set; }
Property Value
Methods
Assign(in PlayerComponent)
public void Assign(in PlayerComponent value)
Parameters
value PlayerComponent
Deserialize(NetDataReader)
public void Deserialize(NetDataReader reader)
Parameters
reader NetDataReader
Serialize(NetDataWriter)
public void Serialize(NetDataWriter writer)
Parameters
writer NetDataWriter