Class MissionPeer
- Namespace
- TaleWorlds.MountAndBlade
- Assembly
- TaleWorlds.MountAndBlade.dll
public class MissionPeer : PeerComponent, IEntityComponent
- Inheritance
-
MissionPeer
- Implements
- Inherited Members
- Extension Methods
Constructors
MissionPeer()
public MissionPeer()
Fields
CaptainBeingDetachedThreshold
public int CaptainBeingDetachedThreshold
Field Value
MaxKDACount
public const int MaxKDACount = 100000
Field Value
MaxNumberOfTroopTypesPerCulture
public const int MaxNumberOfTroopTypesPerCulture = 16
Field Value
MaxScore
public const int MaxScore = 1000000
Field Value
MinKDACount
public const int MinKDACount = -1000
Field Value
MinScore
public const int MinScore = -1000000
Field Value
MinSpawnTimer
public const int MinSpawnTimer = 3
Field Value
NumberOfPerkLists
public const int NumberOfPerkLists = 3
Field Value
Properties
AssistCount
public int AssistCount { get; }
Property Value
BotsUnderControlAlive
public int BotsUnderControlAlive { get; set; }
Property Value
BotsUnderControlTotal
public int BotsUnderControlTotal { get; }
Property Value
ControlledAgent
public Agent ControlledAgent { get; set; }
Property Value
ControlledFormation
public Formation ControlledFormation { get; set; }
Property Value
Culture
public BasicCultureObject Culture { get; set; }
Property Value
DeathCount
public int DeathCount { get; }
Property Value
DisplayedName
public string DisplayedName { get; }
Property Value
EquipmentUpdatingExpired
public bool EquipmentUpdatingExpired { get; set; }
Property Value
FollowedAgent
public Agent FollowedAgent { get; set; }
Property Value
HasSpawnTimerExpired
public bool HasSpawnTimerExpired { get; set; }
Property Value
HasSpawnedAgentVisuals
public bool HasSpawnedAgentVisuals { get; set; }
Property Value
IsAgentAliveForChatting
public bool IsAgentAliveForChatting { get; }
Property Value
IsControlledAgentActive
public bool IsControlledAgentActive { get; }
Property Value
IsMuted
public bool IsMuted { get; }
Property Value
IsMutedFromGameOrPlatform
public bool IsMutedFromGameOrPlatform { get; }
Property Value
IsMutedFromPlatform
public bool IsMutedFromPlatform { get; }
Property Value
JoinTime
public DateTime JoinTime { get; }
Property Value
KillCount
public int KillCount { get; }
Property Value
NextSelectedTroopIndex
public int NextSelectedTroopIndex { get; set; }
Property Value
Perks
public MBReadOnlyList<int[]> Perks { get; }
Property Value
Representative
public MissionRepresentativeBase Representative { get; }
Property Value
RequestedKickPollCount
public int RequestedKickPollCount { get; }
Property Value
Score
public int Score { get; }
Property Value
SelectedPerks
public MBReadOnlyList<MPPerkObject> SelectedPerks { get; }
Property Value
SelectedTroopIndex
public int SelectedTroopIndex { get; set; }
Property Value
SpawnCountThisRound
public int SpawnCountThisRound { get; set; }
Property Value
SpawnTimer
public Timer SpawnTimer { get; }
Property Value
Team
public Team Team { get; set; }
Property Value
TeamInitialPerkInfoReady
public bool TeamInitialPerkInfoReady { get; }
Property Value
VotedForBan
public BasicCultureObject VotedForBan { get; }
Property Value
VotedForSelection
public BasicCultureObject VotedForSelection { get; }
Property Value
WantsToSpawnAsBot
public bool WantsToSpawnAsBot { get; set; }
Property Value
Methods
ClearAllVisuals(bool)
public void ClearAllVisuals(bool freeResources = false)
Parameters
freeResources
bool
ClearVisuals(int)
public void ClearVisuals(int visualIndex)
Parameters
visualIndex
int
GetAgentVisualForPeer(int)
public IAgentVisual GetAgentVisualForPeer(int visualsIndex)
Parameters
visualsIndex
int
Returns
GetAgentVisualForPeer(int, out IAgentVisual)
public IAgentVisual GetAgentVisualForPeer(int visualsIndex, out IAgentVisual mountAgentVisuals)
Parameters
visualsIndex
intmountAgentVisuals
IAgentVisual
Returns
GetAllAgentVisualsForPeer()
public IEnumerable<IAgentVisual> GetAllAgentVisualsForPeer()
Returns
GetAmountOfAgentVisualsForPeer()
public int GetAmountOfAgentVisualsForPeer()
Returns
GetNumberOfTimesPeerKilledPeer(MissionPeer)
public int GetNumberOfTimesPeerKilledPeer(MissionPeer killedPeer)
Parameters
killedPeer
MissionPeer
Returns
GetSelectedPerkIndexWithPerkListIndex(int, int)
public int GetSelectedPerkIndexWithPerkListIndex(int troopIndex, int perkListIndex)
Parameters
Returns
GetVisuals(int)
public PeerVisualsHolder GetVisuals(int visualIndex)
Parameters
visualIndex
int
Returns
HandleVoteChange(CultureVoteTypes, BasicCultureObject)
public void HandleVoteChange(CultureVoteTypes voteType, BasicCultureObject culture)
Parameters
voteType
CultureVoteTypesculture
BasicCultureObject
IncrementRequestedKickPollCount()
public void IncrementRequestedKickPollCount()
OnFinalize()
public override void OnFinalize()
OnInitialize()
public override void OnInitialize()
OnKillAnotherPeer(MissionPeer)
public void OnKillAnotherPeer(MissionPeer victimPeer)
Parameters
victimPeer
MissionPeer
OnTeamInitialPerkInfoReceived(int[])
public void OnTeamInitialPerkInfoReceived(int[] perks)
Parameters
perks
int[]
OnVisualsSpawned(PeerVisualsHolder, int)
public void OnVisualsSpawned(PeerVisualsHolder visualsHolder, int visualIndex)
Parameters
visualsHolder
PeerVisualsHoldervisualIndex
int
OverrideCultureWithTeamCulture()
public void OverrideCultureWithTeamCulture()
RefreshSelectedPerks()
public bool RefreshSelectedPerks()
Returns
ResetKillRegistry()
public void ResetKillRegistry()
ResetRequestedKickPollCount()
public void ResetRequestedKickPollCount()
SelectPerk(int, int, int)
public bool SelectPerk(int perkListIndex, int perkIndex, int enforcedSelectedTroopIndex = -1)
Parameters
Returns
SetMuted(bool)
public void SetMuted(bool isMuted)
Parameters
isMuted
bool
SetMutedFromPlatform(bool)
public void SetMutedFromPlatform(bool isMuted)
Parameters
isMuted
bool
TickInactivityStatus()
public void TickInactivityStatus()
Events
OnEquipmentIndexRefreshed
public static event MissionPeer.OnUpdateEquipmentSetIndexEventDelegate OnEquipmentIndexRefreshed
Event Type
OnPerkSelectionUpdated
public static event MissionPeer.OnPerkUpdateEventDelegate OnPerkSelectionUpdated
Event Type
OnPlayerKilled
public static event MissionPeer.OnPlayerKilledDelegate OnPlayerKilled
Event Type
OnPreTeamChanged
public static event MissionPeer.OnTeamChangedDelegate OnPreTeamChanged
Event Type
OnTeamChanged
public static event MissionPeer.OnTeamChangedDelegate OnTeamChanged
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).