Class CustomBattleTroopSupplier
- Namespace
- TaleWorlds.MountAndBlade
- Assembly
- TaleWorlds.MountAndBlade.dll
public class CustomBattleTroopSupplier : IMissionTroopSupplier
- Inheritance
-
CustomBattleTroopSupplier
- Implements
- Inherited Members
Constructors
CustomBattleTroopSupplier(CustomBattleCombatant, bool, bool, bool, Func<BasicCharacterObject, bool>)
public CustomBattleTroopSupplier(CustomBattleCombatant customBattleCombatant, bool isPlayerSide, bool isPlayerGeneral, bool isSallyOut, Func<BasicCharacterObject, bool> customAllocationConditions = null)
Parameters
customBattleCombatant
CustomBattleCombatantisPlayerSide
boolisPlayerGeneral
boolisSallyOut
boolcustomAllocationConditions
Func<BasicCharacterObject, bool>
Properties
AnyTroopRemainsToBeSupplied
public bool AnyTroopRemainsToBeSupplied { get; }
Property Value
NumRemovedTroops
public int NumRemovedTroops { get; }
Property Value
NumTroopsNotSupplied
public int NumTroopsNotSupplied { get; }
Property Value
Methods
GetAllTroops()
public IEnumerable<IAgentOriginBase> GetAllTroops()
Returns
GetGeneralCharacter()
public BasicCharacterObject GetGeneralCharacter()
Returns
GetNumberOfPlayerControllableTroops()
public int GetNumberOfPlayerControllableTroops()
Returns
OnTroopKilled()
public void OnTroopKilled()
OnTroopRouted()
public void OnTroopRouted()
OnTroopWounded()
public void OnTroopWounded()
SupplyTroops(int)
public IEnumerable<IAgentOriginBase> SupplyTroops(int numberToAllocate)
Parameters
numberToAllocate
int
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).