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
formation
Formation
Returns
GetFormationBanner(Formation)
public ItemObject GetFormationBanner(Formation formation)
Parameters
formation
Formation
Returns
GetFormationBannerBearers(Formation)
public List<Agent> GetFormationBannerBearers(Formation formation)
Parameters
formation
Formation
Returns
GetFormationFromBanner(SpawnedItemEntity)
public Formation GetFormationFromBanner(SpawnedItemEntity spawnedItem)
Parameters
spawnedItem
SpawnedItemEntity
Returns
GetMissingBannerCount(Formation)
public int GetMissingBannerCount(Formation formation)
Parameters
formation
Formation
Returns
HasBannerOnGround(Formation)
public bool HasBannerOnGround(Formation formation)
Parameters
formation
Formation
Returns
IsBannerItem(ItemObject)
public static bool IsBannerItem(ItemObject item)
Parameters
item
ItemObject
Returns
IsBannerSearchingAgent(Agent)
public bool IsBannerSearchingAgent(Agent agent)
Parameters
agent
Agent
Returns
IsFormationBanner(Formation, SpawnedItemEntity)
public bool IsFormationBanner(Formation formation, SpawnedItemEntity spawnedItem)
Parameters
formation
FormationspawnedItem
SpawnedItemEntity
Returns
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
AgentaffectorAgent
AgentagentState
AgentStateblow
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
AgentspawnedItem
SpawnedItemEntity
OnItemPickup(Agent, SpawnedItemEntity)
public void OnItemPickup(Agent agent, SpawnedItemEntity spawnedItem)
Parameters
agent
AgentspawnedItem
SpawnedItemEntity
OnMissionTick(float)
public override void OnMissionTick(float dt)
Parameters
dt
float
SetFormationBanner(Formation, ItemObject)
public void SetFormationBanner(Formation formation, ItemObject newBanner)
Parameters
formation
FormationnewBanner
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
IAgentOriginBaseisPlayerSide
boolformation
FormationspawnWithHorse
boolisReinforcement
boolformationTroopCount
intformationTroopIndex
intisAlarmed
boolwieldInitialWeapons
boolforceDismounted
boolinitialPosition
Vec3?initialDirection
Vec2?specialActionSetSuffix
stringuseTroopClassForSpawn
bool
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).