Table of Contents

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

int

MaxKDACount

public const int MaxKDACount = 100000

Field Value

int

MaxNumberOfTroopTypesPerCulture

public const int MaxNumberOfTroopTypesPerCulture = 16

Field Value

int

MaxScore

public const int MaxScore = 1000000

Field Value

int

MinKDACount

public const int MinKDACount = -1000

Field Value

int

MinScore

public const int MinScore = -1000000

Field Value

int

MinSpawnTimer

public const int MinSpawnTimer = 3

Field Value

int

NumberOfPerkLists

public const int NumberOfPerkLists = 3

Field Value

int

Properties

AssistCount

public int AssistCount { get; }

Property Value

int

BotsUnderControlAlive

public int BotsUnderControlAlive { get; set; }

Property Value

int

BotsUnderControlTotal

public int BotsUnderControlTotal { get; }

Property Value

int

ControlledAgent

public Agent ControlledAgent { get; set; }

Property Value

Agent

ControlledFormation

public Formation ControlledFormation { get; set; }

Property Value

Formation

Culture

public BasicCultureObject Culture { get; set; }

Property Value

BasicCultureObject

DeathCount

public int DeathCount { get; }

Property Value

int

DisplayedName

public string DisplayedName { get; }

Property Value

string

EquipmentUpdatingExpired

public bool EquipmentUpdatingExpired { get; set; }

Property Value

bool

FollowedAgent

public Agent FollowedAgent { get; set; }

Property Value

Agent

HasSpawnTimerExpired

public bool HasSpawnTimerExpired { get; set; }

Property Value

bool

HasSpawnedAgentVisuals

public bool HasSpawnedAgentVisuals { get; set; }

Property Value

bool

IsAgentAliveForChatting

public bool IsAgentAliveForChatting { get; }

Property Value

bool

IsControlledAgentActive

public bool IsControlledAgentActive { get; }

Property Value

bool

IsMuted

public bool IsMuted { get; }

Property Value

bool

IsMutedFromGameOrPlatform

public bool IsMutedFromGameOrPlatform { get; }

Property Value

bool

IsMutedFromPlatform

public bool IsMutedFromPlatform { get; }

Property Value

bool

JoinTime

public DateTime JoinTime { get; }

Property Value

DateTime

KillCount

public int KillCount { get; }

Property Value

int

NextSelectedTroopIndex

public int NextSelectedTroopIndex { get; set; }

Property Value

int

Perks

public MBReadOnlyList<int[]> Perks { get; }

Property Value

MBReadOnlyList<int[]>

Representative

public MissionRepresentativeBase Representative { get; }

Property Value

MissionRepresentativeBase

RequestedKickPollCount

public int RequestedKickPollCount { get; }

Property Value

int

Score

public int Score { get; }

Property Value

int

SelectedPerks

public MBReadOnlyList<MPPerkObject> SelectedPerks { get; }

Property Value

MBReadOnlyList<MPPerkObject>

SelectedTroopIndex

public int SelectedTroopIndex { get; set; }

Property Value

int

SpawnCountThisRound

public int SpawnCountThisRound { get; set; }

Property Value

int

SpawnTimer

public Timer SpawnTimer { get; }

Property Value

Timer

Team

public Team Team { get; set; }

Property Value

Team

TeamInitialPerkInfoReady

public bool TeamInitialPerkInfoReady { get; }

Property Value

bool

VotedForBan

public BasicCultureObject VotedForBan { get; }

Property Value

BasicCultureObject

VotedForSelection

public BasicCultureObject VotedForSelection { get; }

Property Value

BasicCultureObject

WantsToSpawnAsBot

public bool WantsToSpawnAsBot { get; set; }

Property Value

bool

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

IAgentVisual

GetAgentVisualForPeer(int, out IAgentVisual)

public IAgentVisual GetAgentVisualForPeer(int visualsIndex, out IAgentVisual mountAgentVisuals)

Parameters

visualsIndex int
mountAgentVisuals IAgentVisual

Returns

IAgentVisual

GetAllAgentVisualsForPeer()

public IEnumerable<IAgentVisual> GetAllAgentVisualsForPeer()

Returns

IEnumerable<IAgentVisual>

GetAmountOfAgentVisualsForPeer()

public int GetAmountOfAgentVisualsForPeer()

Returns

int

GetNumberOfTimesPeerKilledPeer(MissionPeer)

public int GetNumberOfTimesPeerKilledPeer(MissionPeer killedPeer)

Parameters

killedPeer MissionPeer

Returns

int

GetSelectedPerkIndexWithPerkListIndex(int, int)

public int GetSelectedPerkIndexWithPerkListIndex(int troopIndex, int perkListIndex)

Parameters

troopIndex int
perkListIndex int

Returns

int

GetVisuals(int)

public PeerVisualsHolder GetVisuals(int visualIndex)

Parameters

visualIndex int

Returns

PeerVisualsHolder

HandleVoteChange(CultureVoteTypes, BasicCultureObject)

public void HandleVoteChange(CultureVoteTypes voteType, BasicCultureObject culture)

Parameters

voteType CultureVoteTypes
culture 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 PeerVisualsHolder
visualIndex int

OverrideCultureWithTeamCulture()

public void OverrideCultureWithTeamCulture()

RefreshSelectedPerks()

public bool RefreshSelectedPerks()

Returns

bool

ResetKillRegistry()

public void ResetKillRegistry()

ResetRequestedKickPollCount()

public void ResetRequestedKickPollCount()

SelectPerk(int, int, int)

public bool SelectPerk(int perkListIndex, int perkIndex, int enforcedSelectedTroopIndex = -1)

Parameters

perkListIndex int
perkIndex int
enforcedSelectedTroopIndex int

Returns

bool

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

MissionPeer.OnUpdateEquipmentSetIndexEventDelegate

OnPerkSelectionUpdated

public static event MissionPeer.OnPerkUpdateEventDelegate OnPerkSelectionUpdated

Event Type

MissionPeer.OnPerkUpdateEventDelegate

OnPlayerKilled

public static event MissionPeer.OnPlayerKilledDelegate OnPlayerKilled

Event Type

MissionPeer.OnPlayerKilledDelegate

OnPreTeamChanged

public static event MissionPeer.OnTeamChangedDelegate OnPreTeamChanged

Event Type

MissionPeer.OnTeamChangedDelegate

OnTeamChanged

public static event MissionPeer.OnTeamChangedDelegate OnTeamChanged

Event Type

MissionPeer.OnTeamChangedDelegate

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