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
side
BattleSideEnum
Returns
FormationStartUsing(Formation)
void FormationStartUsing(Formation formation)
Parameters
formation
Formation
FormationStopUsing(Formation)
void FormationStopUsing(Formation formation)
Parameters
formation
Formation
GetAgentFrame(Agent)
WorldFrame? GetAgentFrame(Agent detachedAgent)
Parameters
detachedAgent
Agent
Returns
GetDetachmentWeight(BattleSideEnum)
float GetDetachmentWeight(BattleSideEnum side)
Parameters
side
BattleSideEnum
Returns
GetDetachmentWeightFromCache()
float GetDetachmentWeightFromCache()
Returns
GetExactCostOfAgentAtSlot(Agent, int)
float GetExactCostOfAgentAtSlot(Agent candidate, int slotIndex)
Parameters
Returns
GetMovingAgentAtSlotIndex(int)
Agent GetMovingAgentAtSlotIndex(int slotIndex)
Parameters
slotIndex
int
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
candidate
Agent
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
side
BattleSideEnum
Returns
GetWeightOfOccupiedSlot(Agent)
float GetWeightOfOccupiedSlot(Agent detachedAgent)
Parameters
detachedAgent
Agent
Returns
IsAgentEligible(Agent)
bool IsAgentEligible(Agent agent)
Parameters
agent
Agent
Returns
IsAgentUsingOrInterested(Agent)
bool IsAgentUsingOrInterested(Agent agent)
Parameters
agent
Agent
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
agent
Agent
Returns
IsUsedByFormation(Formation)
bool IsUsedByFormation(Formation formation)
Parameters
formation
Formation
Returns
MarkSlotAtIndex(int)
void MarkSlotAtIndex(int slotIndex)
Parameters
slotIndex
int
OnFormationLeave(Formation)
void OnFormationLeave(Formation formation)
Parameters
formation
Formation
RemoveAgent(Agent)
void RemoveAgent(Agent detachedAgent)
Parameters
detachedAgent
Agent
ResetEvaluation()
void ResetEvaluation()
SetAsEvaluated()
void SetAsEvaluated()
UnmarkDetachment()
void UnmarkDetachment()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).