Table of Contents

Class BannerBearerLogic

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class BannerBearerLogic : MissionLogic, IMissionBehavior
Inheritance
BannerBearerLogic
Implements
Inherited Members

Constructors

BannerBearerLogic()

public BannerBearerLogic()

Fields

BannerSearcherUpdatePeriod

public const float BannerSearcherUpdatePeriod = 3

Field Value

float

DefaultBannerBearerAgentDefensiveness

public const float DefaultBannerBearerAgentDefensiveness = 1

Field Value

float

Properties

AgentSpawnLogic

public MissionAgentSpawnLogic AgentSpawnLogic { get; }

Property Value

MissionAgentSpawnLogic

Methods

GetActiveBanner(Formation)

public BannerComponent GetActiveBanner(Formation formation)

Parameters

formation Formation

Returns

BannerComponent

GetFormationBanner(Formation)

public ItemObject GetFormationBanner(Formation formation)

Parameters

formation Formation

Returns

ItemObject

GetFormationBannerBearers(Formation)

public List<Agent> GetFormationBannerBearers(Formation formation)

Parameters

formation Formation

Returns

List<Agent>

GetFormationFromBanner(SpawnedItemEntity)

public Formation GetFormationFromBanner(SpawnedItemEntity spawnedItem)

Parameters

spawnedItem SpawnedItemEntity

Returns

Formation

GetMissingBannerCount(Formation)

public int GetMissingBannerCount(Formation formation)

Parameters

formation Formation

Returns

int

HasBannerOnGround(Formation)

public bool HasBannerOnGround(Formation formation)

Parameters

formation Formation

Returns

bool

IsBannerItem(ItemObject)

public static bool IsBannerItem(ItemObject item)

Parameters

item ItemObject

Returns

bool

IsBannerSearchingAgent(Agent)

public bool IsBannerSearchingAgent(Agent agent)

Parameters

agent Agent

Returns

bool

IsFormationBanner(Formation, SpawnedItemEntity)

public bool IsFormationBanner(Formation formation, SpawnedItemEntity spawnedItem)

Parameters

formation Formation
spawnedItem SpawnedItemEntity

Returns

bool

OnAgentPanicked(Agent)

public override void OnAgentPanicked(Agent affectedAgent)

Parameters

affectedAgent Agent

OnAgentRemoved(Agent, Agent, AgentState, KillingBlow)

public override void OnAgentRemoved(Agent affectedAgent, Agent affectorAgent, AgentState agentState, KillingBlow blow)

Parameters

affectedAgent Agent
affectorAgent Agent
agentState AgentState
blow KillingBlow

OnBehaviorInitialize()

public override void OnBehaviorInitialize()

OnDeploymentFinished()

public override void OnDeploymentFinished()

OnEndMission()

protected override void OnEndMission()

OnItemDrop(Agent, SpawnedItemEntity)

public void OnItemDrop(Agent agent, SpawnedItemEntity spawnedItem)

Parameters

agent Agent
spawnedItem SpawnedItemEntity

OnItemPickup(Agent, SpawnedItemEntity)

public void OnItemPickup(Agent agent, SpawnedItemEntity spawnedItem)

Parameters

agent Agent
spawnedItem SpawnedItemEntity

OnMissionTick(float)

public override void OnMissionTick(float dt)

Parameters

dt float

SetFormationBanner(Formation, ItemObject)

public void SetFormationBanner(Formation formation, ItemObject newBanner)

Parameters

formation Formation
newBanner ItemObject

SpawnBannerBearer(IAgentOriginBase, bool, Formation, bool, bool, int, int, bool, bool, bool, Vec3?, Vec2?, string, bool)

public Agent SpawnBannerBearer(IAgentOriginBase troopOrigin, bool isPlayerSide, Formation formation, bool spawnWithHorse, bool isReinforcement, int formationTroopCount, int formationTroopIndex, bool isAlarmed, bool wieldInitialWeapons, bool forceDismounted, Vec3? initialPosition, Vec2? initialDirection, string specialActionSetSuffix = null, bool useTroopClassForSpawn = false)

Parameters

troopOrigin IAgentOriginBase
isPlayerSide bool
formation Formation
spawnWithHorse bool
isReinforcement bool
formationTroopCount int
formationTroopIndex int
isAlarmed bool
wieldInitialWeapons bool
forceDismounted bool
initialPosition Vec3?
initialDirection Vec2?
specialActionSetSuffix string
useTroopClassForSpawn bool

Returns

Agent

UpdateAgent(Agent, bool)

public void UpdateAgent(Agent agent, bool willBecomeBannerBearer)

Parameters

agent Agent
willBecomeBannerBearer bool

Events

OnBannerBearerAgentUpdated

public event Action<Agent, bool> OnBannerBearerAgentUpdated

Event Type

Action<Agent, bool>

OnBannerBearersUpdated

public event Action<Formation> OnBannerBearersUpdated

Event Type

Action<Formation>

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