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
DefaultBannerBearerAgentDefensiveness
public const float DefaultBannerBearerAgentDefensiveness = 1
Field Value
Properties
AgentSpawnLogic
public MissionAgentSpawnLogic AgentSpawnLogic { get; }
Property Value
Methods
GetActiveBanner(Formation)
public BannerComponent GetActiveBanner(Formation formation)
Parameters
formationFormation
Returns
GetFormationBanner(Formation)
public ItemObject GetFormationBanner(Formation formation)
Parameters
formationFormation
Returns
GetFormationBannerBearers(Formation)
public List<Agent> GetFormationBannerBearers(Formation formation)
Parameters
formationFormation
Returns
GetFormationFromBanner(SpawnedItemEntity)
public Formation GetFormationFromBanner(SpawnedItemEntity spawnedItem)
Parameters
spawnedItemSpawnedItemEntity
Returns
GetMissingBannerCount(Formation)
public int GetMissingBannerCount(Formation formation)
Parameters
formationFormation
Returns
HasBannerOnGround(Formation)
public bool HasBannerOnGround(Formation formation)
Parameters
formationFormation
Returns
IsBannerItem(ItemObject)
public static bool IsBannerItem(ItemObject item)
Parameters
itemItemObject
Returns
IsBannerSearchingAgent(Agent)
public bool IsBannerSearchingAgent(Agent agent)
Parameters
agentAgent
Returns
IsFormationBanner(Formation, SpawnedItemEntity)
public bool IsFormationBanner(Formation formation, SpawnedItemEntity spawnedItem)
Parameters
formationFormationspawnedItemSpawnedItemEntity
Returns
OnAgentPanicked(Agent)
public override void OnAgentPanicked(Agent affectedAgent)
Parameters
affectedAgentAgent
OnAgentRemoved(Agent, Agent, AgentState, KillingBlow)
public override void OnAgentRemoved(Agent affectedAgent, Agent affectorAgent, AgentState agentState, KillingBlow blow)
Parameters
affectedAgentAgentaffectorAgentAgentagentStateAgentStateblowKillingBlow
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
agentAgentspawnedItemSpawnedItemEntity
OnItemPickup(Agent, SpawnedItemEntity)
public void OnItemPickup(Agent agent, SpawnedItemEntity spawnedItem)
Parameters
agentAgentspawnedItemSpawnedItemEntity
OnMissionTick(float)
public override void OnMissionTick(float dt)
Parameters
dtfloat
SetFormationBanner(Formation, ItemObject)
public void SetFormationBanner(Formation formation, ItemObject newBanner)
Parameters
formationFormationnewBannerItemObject
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
troopOriginIAgentOriginBaseisPlayerSideboolformationFormationspawnWithHorseboolisReinforcementboolformationTroopCountintformationTroopIndexintisAlarmedboolwieldInitialWeaponsboolforceDismountedboolinitialPositionVec3?initialDirectionVec2?specialActionSetSuffixstringuseTroopClassForSpawnbool
Returns
UpdateAgent(Agent, bool)
public void UpdateAgent(Agent agent, bool willBecomeBannerBearer)
Parameters
Events
OnBannerBearerAgentUpdated
public event Action<Agent, bool> OnBannerBearerAgentUpdated
Event Type
OnBannerBearersUpdated
public event Action<Formation> OnBannerBearersUpdated
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).