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
AveragePingInMilliseconds
public double AveragePingInMilliseconds { get; }
Property Value
ControlledAgent
public Agent ControlledAgent { get; set; }
Property Value
ForcedAvatarIndex
public int ForcedAvatarIndex { get; set; }
Property Value
Index
public int Index { get; }
Property Value
IsAdmin
public bool IsAdmin { get; }
Property Value
IsConnectionActive
public bool IsConnectionActive { get; }
Property Value
IsMine
public bool IsMine { get; }
Property Value
IsMuted
public bool IsMuted { get; set; }
Property Value
IsNetworkActive
public bool IsNetworkActive { get; }
Property Value
IsServerPeer
public bool IsServerPeer { get; }
Property Value
IsSynchronized
public bool IsSynchronized { get; set; }
Property Value
JustReconnecting
public bool JustReconnecting { get; }
Property Value
PlayerConnectionInfo
public PlayerConnectionInfo PlayerConnectionInfo { get; }
Property Value
QuitFromMission
public bool QuitFromMission { get; set; }
Property Value
ServerPerformanceProblemState
public ServerPerformanceState ServerPerformanceProblemState { get; }
Property Value
SessionKey
public int SessionKey { get; }
Property Value
UserName
public string UserName { get; }
Property Value
VirtualPlayer
public VirtualPlayer VirtualPlayer { get; }
Property Value
Methods
GetHost()
public uint GetHost()
Returns
GetPort()
public ushort GetPort()
Returns
GetReversedHost()
public uint GetReversedHost()
Returns
SetRelevantGameOptions(bool, bool)
public void SetRelevantGameOptions(bool sendMeBloodEvents, bool sendMeSoundEvents)
Parameters
UpdateConnectionInfoForReconnect(PlayerConnectionInfo, bool)
public void UpdateConnectionInfoForReconnect(PlayerConnectionInfo playerConnectionInfo, bool isAdmin)
Parameters
playerConnectionInfo
PlayerConnectionInfoisAdmin
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
OnPeerComponentAdded
public static event Action<PeerComponent> OnPeerComponentAdded
Event Type
OnPeerSynchronized
public static event Action<NetworkCommunicator> OnPeerSynchronized
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).