Table of Contents

Class NetworkCommunicator

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public sealed class NetworkCommunicator : ICommunicator
Inheritance
NetworkCommunicator
Implements
Inherited Members
Extension Methods

Properties

AverageLossPercent

public double AverageLossPercent { get; }

Property Value

double

AveragePingInMilliseconds

public double AveragePingInMilliseconds { get; }

Property Value

double

ControlledAgent

public Agent ControlledAgent { get; set; }

Property Value

Agent

ForcedAvatarIndex

public int ForcedAvatarIndex { get; set; }

Property Value

int

Index

public int Index { get; }

Property Value

int

IsAdmin

public bool IsAdmin { get; }

Property Value

bool

IsConnectionActive

public bool IsConnectionActive { get; }

Property Value

bool

IsMine

public bool IsMine { get; }

Property Value

bool

IsMuted

public bool IsMuted { get; set; }

Property Value

bool

IsNetworkActive

public bool IsNetworkActive { get; }

Property Value

bool

IsServerPeer

public bool IsServerPeer { get; }

Property Value

bool

IsSynchronized

public bool IsSynchronized { get; set; }

Property Value

bool

JustReconnecting

public bool JustReconnecting { get; }

Property Value

bool

PlayerConnectionInfo

public PlayerConnectionInfo PlayerConnectionInfo { get; }

Property Value

PlayerConnectionInfo

QuitFromMission

public bool QuitFromMission { get; set; }

Property Value

bool

ServerPerformanceProblemState

public ServerPerformanceState ServerPerformanceProblemState { get; }

Property Value

ServerPerformanceState

SessionKey

public int SessionKey { get; }

Property Value

int

UserName

public string UserName { get; }

Property Value

string

VirtualPlayer

public VirtualPlayer VirtualPlayer { get; }

Property Value

VirtualPlayer

Methods

GetHost()

public uint GetHost()

Returns

uint

GetPort()

public ushort GetPort()

Returns

ushort

GetReversedHost()

public uint GetReversedHost()

Returns

uint

SetRelevantGameOptions(bool, bool)

public void SetRelevantGameOptions(bool sendMeBloodEvents, bool sendMeSoundEvents)

Parameters

sendMeBloodEvents bool
sendMeSoundEvents bool

UpdateConnectionInfoForReconnect(PlayerConnectionInfo, bool)

public void UpdateConnectionInfoForReconnect(PlayerConnectionInfo playerConnectionInfo, bool isAdmin)

Parameters

playerConnectionInfo PlayerConnectionInfo
isAdmin bool

UpdateForJoiningCustomGame(bool)

public void UpdateForJoiningCustomGame(bool isAdmin)

Parameters

isAdmin bool

UpdateIndexForReconnectingPlayer(int)

public void UpdateIndexForReconnectingPlayer(int newIndex)

Parameters

newIndex int

Events

OnPeerAveragePingUpdated

public static event Action<NetworkCommunicator> OnPeerAveragePingUpdated

Event Type

Action<NetworkCommunicator>

OnPeerComponentAdded

public static event Action<PeerComponent> OnPeerComponentAdded

Event Type

Action<PeerComponent>

OnPeerSynchronized

public static event Action<NetworkCommunicator> OnPeerSynchronized

Event Type

Action<NetworkCommunicator>

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