跳到主要内容
版本:0.3.1

Struct PvpStateComponent

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

Holds the state of the PvP mode, including settings and in-game state.

public struct PvpStateComponent : 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​

AntiStallEnabled​

public bool AntiStallEnabled { get; set; }

Property Value​

bool

CheatsAllowed​

public bool CheatsAllowed { get; set; }

Property Value​

bool

ConsumablesAllowed​

public bool ConsumablesAllowed { get; set; }

Property Value​

bool

CurrentRound​

public int CurrentRound { get; }

Property Value​

int

EnemiesNgPlusLevel​

public int EnemiesNgPlusLevel { get; set; }

Property Value​

int

GourdAllowed​

public bool GourdAllowed { get; set; }

Property Value​

bool

ImmobilizeAllowed​

public bool ImmobilizeAllowed { get; set; }

Property Value​

bool

InPvP​

public bool InPvP { get; set; }

Property Value​

bool

InTournament​

public bool InTournament { get; set; }

Property Value​

bool

LevelId​

public int LevelId { get; set; }

Property Value​

int

PhantomRushAllowed​

public bool PhantomRushAllowed { get; set; }

Property Value​

bool

RoundWinnersCount​

public int RoundWinnersCount { get; }

Property Value​

int

TournamentRounds​

public int TournamentRounds { get; set; }

Property Value​

int

Methods​

AddRoundWinners(in int)​

public void AddRoundWinners(in int value)

Parameters​

value int

Assign(in PvpStateComponent)​

public void Assign(in PvpStateComponent value)

Parameters​

value PvpStateComponent

ClearRoundWinners()​

public void ClearRoundWinners()

ContainsRoundWinners(in int)​

public bool ContainsRoundWinners(in int value)

Parameters​

value int

Returns​

bool

Deserialize(NetDataReader)​

public void Deserialize(NetDataReader reader)

Parameters​

reader NetDataReader

Dispose()​

public void Dispose()

GetRoundWinners()​

public NativeList<int>.ReadOnly GetRoundWinners()

Returns​

NativeList<int>.ReadOnly

GetRoundWinners(int)​

public int GetRoundWinners(int index)

Parameters​

index int

Returns​

int

InsertRoundWinners(int, in int)​

public void InsertRoundWinners(int index, in int value)

Parameters​

index int

value int

RemoveAtRoundWinners(int)​

public int RemoveAtRoundWinners(int index)

Parameters​

index int

Returns​

int

Serialize(NetDataWriter)​

public void Serialize(NetDataWriter writer)

Parameters​

writer NetDataWriter

SetLastRoundWinnerTeam(int)​

public void SetLastRoundWinnerTeam(int teamId)

Parameters​

teamId int

SetRoundWinners(in NativeList<int>)​

public void SetRoundWinners(in NativeList<int> value)

Parameters​

value NativeList<int>

SetRoundWinners(int, in int)​

public void SetRoundWinners(int index, in int value)

Parameters​

index int

value int

  • Properties
    • AntiStallEnabled
    • CheatsAllowed
    • ConsumablesAllowed
    • CurrentRound
    • EnemiesNgPlusLevel
    • GourdAllowed
    • ImmobilizeAllowed
    • InPvP
    • InTournament
    • LevelId
    • PhantomRushAllowed
    • RoundWinnersCount
    • TournamentRounds
  • Methods
    • AddRoundWinners(in int)
    • Assign(in PvpStateComponent)
    • ClearRoundWinners()
    • ContainsRoundWinners(in int)
    • Deserialize(NetDataReader)
    • Dispose()
    • GetRoundWinners()
    • GetRoundWinners(int)
    • InsertRoundWinners(int, in int)
    • RemoveAtRoundWinners(int)
    • Serialize(NetDataWriter)
    • SetLastRoundWinnerTeam(int)
    • SetRoundWinners(in NativeList<int>)
    • SetRoundWinners(int, in int)