Interface IDetachment
- Namespace
- TaleWorlds.MountAndBlade
- Assembly
- TaleWorlds.MountAndBlade.dll
public interface IDetachment
Properties
IsLoose
bool IsLoose { get; }
Property Value
UserFormations
MBReadOnlyList<Formation> UserFormations { get; }
Property Value
Methods
AddAgent(Agent, int)
void AddAgent(Agent agent, int slotIndex = -1)
Parameters
AddAgentAtSlotIndex(Agent, int)
void AddAgentAtSlotIndex(Agent agent, int slotIndex)
Parameters
ComputeAndCacheDetachmentWeight(BattleSideEnum)
float ComputeAndCacheDetachmentWeight(BattleSideEnum side)
Parameters
sideBattleSideEnum
Returns
FormationStartUsing(Formation)
void FormationStartUsing(Formation formation)
Parameters
formationFormation
FormationStopUsing(Formation)
void FormationStopUsing(Formation formation)
Parameters
formationFormation
GetAgentFrame(Agent)
WorldFrame? GetAgentFrame(Agent detachedAgent)
Parameters
detachedAgentAgent
Returns
GetDetachmentWeight(BattleSideEnum)
float GetDetachmentWeight(BattleSideEnum side)
Parameters
sideBattleSideEnum
Returns
GetDetachmentWeightFromCache()
float GetDetachmentWeightFromCache()
Returns
GetExactCostOfAgentAtSlot(Agent, int)
float GetExactCostOfAgentAtSlot(Agent candidate, int slotIndex)
Parameters
Returns
GetMovingAgentAtSlotIndex(int)
Agent GetMovingAgentAtSlotIndex(int slotIndex)
Parameters
slotIndexint
Returns
GetNumberOfUsableSlots()
int GetNumberOfUsableSlots()
Returns
GetSlotIndexWeightTuples(List<(int, float)>)
void GetSlotIndexWeightTuples(List<(int, float)> slotIndexWeightTuples)
Parameters
GetTemplateCostsOfAgent(Agent, List<float>)
List<float> GetTemplateCostsOfAgent(Agent candidate, List<float> oldValue)
Parameters
Returns
GetTemplateWeightOfAgent(Agent)
float GetTemplateWeightOfAgent(Agent candidate)
Parameters
candidateAgent
Returns
GetWeightOfAgentAtNextSlot(List<(Agent, float)>, out Agent)
float? GetWeightOfAgentAtNextSlot(List<(Agent, float)> agentTemplateScores, out Agent match)
Parameters
Returns
GetWeightOfAgentAtNextSlot(List<Agent>, out Agent)
float? GetWeightOfAgentAtNextSlot(List<Agent> candidates, out Agent match)
Parameters
Returns
GetWeightOfAgentAtOccupiedSlot(Agent, List<Agent>, out Agent)
float? GetWeightOfAgentAtOccupiedSlot(Agent detachedAgent, List<Agent> candidates, out Agent match)
Parameters
Returns
GetWeightOfNextSlot(BattleSideEnum)
float? GetWeightOfNextSlot(BattleSideEnum side)
Parameters
sideBattleSideEnum
Returns
GetWeightOfOccupiedSlot(Agent)
float GetWeightOfOccupiedSlot(Agent detachedAgent)
Parameters
detachedAgentAgent
Returns
IsAgentEligible(Agent)
bool IsAgentEligible(Agent agent)
Parameters
agentAgent
Returns
IsAgentUsingOrInterested(Agent)
bool IsAgentUsingOrInterested(Agent agent)
Parameters
agentAgent
Returns
IsDetachmentRecentlyEvaluated()
bool IsDetachmentRecentlyEvaluated()
Returns
IsEvaluated()
bool IsEvaluated()
Returns
IsSlotAtIndexAvailableForAgent(int, Agent)
bool IsSlotAtIndexAvailableForAgent(int slotIndex, Agent agent)
Parameters
Returns
IsStandingPointAvailableForAgent(Agent)
bool IsStandingPointAvailableForAgent(Agent agent)
Parameters
agentAgent
Returns
IsUsedByFormation(Formation)
bool IsUsedByFormation(Formation formation)
Parameters
formationFormation
Returns
MarkSlotAtIndex(int)
void MarkSlotAtIndex(int slotIndex)
Parameters
slotIndexint
OnFormationLeave(Formation)
void OnFormationLeave(Formation formation)
Parameters
formationFormation
RemoveAgent(Agent)
void RemoveAgent(Agent detachedAgent)
Parameters
detachedAgentAgent
ResetEvaluation()
void ResetEvaluation()
SetAsEvaluated()
void SetAsEvaluated()
UnmarkDetachment()
void UnmarkDetachment()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).