Table of Contents

Class VirtualPlayer

Namespace
TaleWorlds.Core
Assembly
TaleWorlds.Core.dll
public class VirtualPlayer
Inheritance
VirtualPlayer
Inherited Members

Constructors

VirtualPlayer(int, string, PlayerId, ICommunicator)

public VirtualPlayer(int index, string name, PlayerId playerID, ICommunicator communicator)

Parameters

index int
name string
playerID PlayerId
communicator ICommunicator

Fields

Communicator

public readonly ICommunicator Communicator

Field Value

ICommunicator

UsedCosmetics

public Dictionary<int, List<int>> UsedCosmetics

Field Value

Dictionary<int, List<int>>

Properties

BannerCode

public string BannerCode { get; set; }

Property Value

string

BodyProperties

public BodyProperties BodyProperties { get; set; }

Property Value

BodyProperties

ChosenBadgeIndex

public int ChosenBadgeIndex { get; set; }

Property Value

int

Id

public PlayerId Id { get; set; }

Property Value

PlayerId

Index

public int Index { get; }

Property Value

int

IsFemale

public bool IsFemale { get; set; }

Property Value

bool

IsMine

public bool IsMine { get; }

Property Value

bool

PeerComponents

public static Dictionary<Type, object> PeerComponents { get; }

Property Value

Dictionary<Type, object>

Race

public int Race { get; set; }

Property Value

int

UserName

public string UserName { get; }

Property Value

string

Methods

AddComponent(Type)

public PeerComponent AddComponent(Type peerComponentType)

Parameters

peerComponentType Type

Returns

PeerComponent

AddComponent(uint)

public PeerComponent AddComponent(uint componentId)

Parameters

componentId uint

Returns

PeerComponent

AddComponent<T>()

public T AddComponent<T>() where T : PeerComponent, new()

Returns

T

Type Parameters

T

GetComponent(Type)

public PeerComponent GetComponent(Type peerComponentType)

Parameters

peerComponentType Type

Returns

PeerComponent

GetComponent(uint)

public PeerComponent GetComponent(uint componentId)

Parameters

componentId uint

Returns

PeerComponent

GetComponent<T>()

public T GetComponent<T>() where T : PeerComponent

Returns

T

Type Parameters

T

OnDisconnect()

public void OnDisconnect()

Peers<T>()

public static List<T> Peers<T>() where T : PeerComponent

Returns

List<T>

Type Parameters

T

RemoveComponent(PeerComponent)

public void RemoveComponent(PeerComponent component)

Parameters

component PeerComponent

RemoveComponent<T>(bool)

public void RemoveComponent<T>(bool synched = true) where T : PeerComponent

Parameters

synched bool

Type Parameters

T

Reset()

public static void Reset()

SynchronizeComponentsTo(VirtualPlayer)

public void SynchronizeComponentsTo(VirtualPlayer peer)

Parameters

peer VirtualPlayer

UpdateIndexForReconnectingPlayer(int)

public void UpdateIndexForReconnectingPlayer(int playerIndex)

Parameters

playerIndex int

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).