跳到主要内容
版本:0.3.1

Struct TamerComponent

Namespace: ReadyM.Wukong.Common.ECS.Components
Assembly: ReadyM.Wukong.Common.dll

Holds the state of a tamer (monster) entity.

public struct TamerComponent : IComponent, INetSerializable, IDisposable

Implements

IComponent, INetSerializable, IDisposable

Inherited Members

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

ForceKeepSpawned

public bool ForceKeepSpawned { get; }

Property Value

bool

Guid

public NativeString256 Guid { get; set; }

Property Value

NativeString256

HasFsmPaused

public bool HasFsmPaused { get; set; }

Property Value

bool

HoldingPlayersCount

public int HoldingPlayersCount { get; }

Property Value

int

IsBossOrElite

public bool IsBossOrElite { get; set; }

Property Value

bool

UnitPath

public NativeString256 UnitPath { get; set; }

Property Value

NativeString256

Methods

AddHoldingPlayers(in PlayerId)

public void AddHoldingPlayers(in PlayerId value)

Parameters

value PlayerId

Assign(in TamerComponent)

public void Assign(in TamerComponent value)

Parameters

value TamerComponent

ClearHoldingPlayers()

public void ClearHoldingPlayers()

ContainsHoldingPlayers(in PlayerId)

public bool ContainsHoldingPlayers(in PlayerId value)

Parameters

value PlayerId

Returns

bool

Deserialize(NetDataReader)

public void Deserialize(NetDataReader reader)

Parameters

reader NetDataReader

Dispose()

public void Dispose()

GetHoldingPlayers()

public NativeList<PlayerId>.ReadOnly GetHoldingPlayers()

Returns

NativeList<PlayerId>.ReadOnly

GetHoldingPlayers(int)

public PlayerId GetHoldingPlayers(int index)

Parameters

index int

Returns

PlayerId

InsertHoldingPlayers(int, in PlayerId)

public void InsertHoldingPlayers(int index, in PlayerId value)

Parameters

index int

value PlayerId

RemoveAtHoldingPlayers(int)

public PlayerId RemoveAtHoldingPlayers(int index)

Parameters

index int

Returns

PlayerId

Serialize(NetDataWriter)

public void Serialize(NetDataWriter writer)

Parameters

writer NetDataWriter

SetHoldingPlayers(in NativeList<PlayerId>)

public void SetHoldingPlayers(in NativeList<PlayerId> value)

Parameters

value NativeList<PlayerId>

SetHoldingPlayers(int, in PlayerId)

public void SetHoldingPlayers(int index, in PlayerId value)

Parameters

index int

value PlayerId

  • Properties
    • ForceKeepSpawned
    • Guid
    • HasFsmPaused
    • HoldingPlayersCount
    • IsBossOrElite
    • UnitPath
  • Methods
    • AddHoldingPlayers(in PlayerId)
    • Assign(in TamerComponent)
    • ClearHoldingPlayers()
    • ContainsHoldingPlayers(in PlayerId)
    • Deserialize(NetDataReader)
    • Dispose()
    • GetHoldingPlayers()
    • GetHoldingPlayers(int)
    • InsertHoldingPlayers(int, in PlayerId)
    • RemoveAtHoldingPlayers(int)
    • Serialize(NetDataWriter)
    • SetHoldingPlayers(in NativeList<PlayerId>)
    • SetHoldingPlayers(int, in PlayerId)