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
intname
stringplayerID
PlayerIdcommunicator
ICommunicator
Fields
Communicator
public readonly ICommunicator Communicator
Field Value
UsedCosmetics
public Dictionary<int, List<int>> UsedCosmetics
Field Value
- Dictionary<int, List<int>>
Properties
BannerCode
public string BannerCode { get; set; }
Property Value
BodyProperties
public BodyProperties BodyProperties { get; set; }
Property Value
ChosenBadgeIndex
public int ChosenBadgeIndex { get; set; }
Property Value
Id
public PlayerId Id { get; set; }
Property Value
Index
public int Index { get; }
Property Value
IsFemale
public bool IsFemale { get; set; }
Property Value
IsMine
public bool IsMine { get; }
Property Value
PeerComponents
public static Dictionary<Type, object> PeerComponents { get; }
Property Value
Race
public int Race { get; set; }
Property Value
UserName
public string UserName { get; }
Property Value
Methods
AddComponent(Type)
public PeerComponent AddComponent(Type peerComponentType)
Parameters
peerComponentType
Type
Returns
AddComponent(uint)
public PeerComponent AddComponent(uint componentId)
Parameters
componentId
uint
Returns
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
GetComponent(uint)
public PeerComponent GetComponent(uint componentId)
Parameters
componentId
uint
Returns
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).