Class MapEventSide
- Namespace
- TaleWorlds.CampaignSystem.MapEvents
- Assembly
- TaleWorlds.CampaignSystem.dll
public class MapEventSide
- Inheritance
-
MapEventSide
- Inherited Members
Fields
Casualties
[SaveableField(14)]
public int Casualties
Field Value
InfluenceValue
[SaveableField(11)]
public float InfluenceValue
Field Value
RenownAtMapEventEnd
public float RenownAtMapEventEnd
Field Value
RenownValue
[SaveableField(10)]
public float RenownValue
Field Value
StrengthRatio
[SaveableField(9)]
public float StrengthRatio
Field Value
Properties
CasualtyStrength
[SaveableProperty(15)]
public float CasualtyStrength { get; }
Property Value
LeaderParty
[SaveableProperty(4)]
public PartyBase LeaderParty { get; }
Property Value
MapEvent
public MapEvent MapEvent { get; }
Property Value
MapFaction
public IFaction MapFaction { get; }
Property Value
MissionSide
[SaveableProperty(7)]
public BattleSideEnum MissionSide { get; }
Property Value
NumRemainingSimulationTroops
public int NumRemainingSimulationTroops { get; }
Property Value
OtherSide
public MapEventSide OtherSide { get; }
Property Value
Parties
public MBReadOnlyList<MapEventParty> Parties { get; }
Property Value
TroopCount
public int TroopCount { get; }
Property Value
Methods
AddHeroDamage(Hero, int)
public void AddHeroDamage(Hero character, int damage)
Parameters
AllocateTroops(ref List<UniqueTroopDescriptor>, int, Func<UniqueTroopDescriptor, MapEventParty, bool>)
public void AllocateTroops(ref List<UniqueTroopDescriptor> troopsList, int number = -1, Func<UniqueTroopDescriptor, MapEventParty, bool> customAllocationConditions = null)
Parameters
troopsListList<UniqueTroopDescriptor>numberintcustomAllocationConditionsFunc<UniqueTroopDescriptor, MapEventParty, bool>
ApplyFinalRewardsAndChanges()
public void ApplyFinalRewardsAndChanges()
ApplyRenownAndInfluenceChanges()
public void ApplyRenownAndInfluenceChanges()
ApplySimulatedHitRewardToSelectedTroop(CharacterObject, CharacterObject, int, bool)
public void ApplySimulatedHitRewardToSelectedTroop(CharacterObject strikerTroop, CharacterObject attackedTroop, int damage, bool isFinishingStrike)
Parameters
strikerTroopCharacterObjectattackedTroopCharacterObjectdamageintisFinishingStrikebool
AutoGeneratedInstanceCollectObjects(List<object>)
protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
CalculatePlunderedGoldShare(float, MapEventResultExplainer)
public virtual void CalculatePlunderedGoldShare(float totalPlunderedGold, MapEventResultExplainer resultExplainers = null)
Parameters
totalPlunderedGoldfloatresultExplainersMapEventResultExplainer
CalculateRenownAndInfluenceValues(float[])
public void CalculateRenownAndInfluenceValues(float[] strengthOfSide)
Parameters
strengthOfSidefloat[]
Clear()
public void Clear()
CountTroops(Func<FlattenedTroopRosterElement, bool>)
public int CountTroops(Func<FlattenedTroopRosterElement, bool> pred)
Parameters
predFunc<FlattenedTroopRosterElement, bool>
Returns
DistributeRenownAndInfluence(MapEventResultExplainer, bool)
public virtual void DistributeRenownAndInfluence(MapEventResultExplainer resultExplainers = null, bool forScoreboard = false)
Parameters
resultExplainersMapEventResultExplainerforScoreboardbool
EndSimulation()
public void EndSimulation()
GetAllTroops(ref List<UniqueTroopDescriptor>)
public void GetAllTroops(ref List<UniqueTroopDescriptor> troopsList)
Parameters
troopsListList<UniqueTroopDescriptor>
GetAllocatedTroop(UniqueTroopDescriptor)
public CharacterObject GetAllocatedTroop(UniqueTroopDescriptor troopDesc0)
Parameters
troopDesc0UniqueTroopDescriptor
Returns
GetAllocatedTroopParty(UniqueTroopDescriptor)
public PartyBase GetAllocatedTroopParty(UniqueTroopDescriptor troopDescriptor)
Parameters
troopDescriptorUniqueTroopDescriptor
Returns
GetPlayerPartyContributionRate()
public float GetPlayerPartyContributionRate()
Returns
GetReadyTroop(UniqueTroopDescriptor)
public CharacterObject GetReadyTroop(UniqueTroopDescriptor troopDesc0)
Parameters
troopDesc0UniqueTroopDescriptor
Returns
GetReadyTroopParty(UniqueTroopDescriptor)
public PartyBase GetReadyTroopParty(UniqueTroopDescriptor troopDescriptor)
Parameters
troopDescriptorUniqueTroopDescriptor
Returns
GetTotalHealthyHeroCountOfSide()
public int GetTotalHealthyHeroCountOfSide()
Returns
GetTotalHealthyTroopCountOfSide()
public int GetTotalHealthyTroopCountOfSide()
Returns
HandleMapEventEnd()
public void HandleMapEventEnd()
IsMainPartyAmongParties()
public bool IsMainPartyAmongParties()
Returns
ItemRosterForPlayerLootShare(PartyBase)
public ItemRoster ItemRosterForPlayerLootShare(PartyBase playerParty)
Parameters
playerPartyPartyBase
Returns
MakeReadyForMission(FlattenedTroopRoster)
public void MakeReadyForMission(FlattenedTroopRoster priorTroops)
Parameters
priorTroopsFlattenedTroopRoster
MakeReadyForSimulation(FlattenedTroopRoster, int)
public void MakeReadyForSimulation(FlattenedTroopRoster priorTroops, int sizeOfSide = -1)
Parameters
priorTroopsFlattenedTroopRostersizeOfSideint
MemberRosterForPlayerLootShare(PartyBase)
public TroopRoster MemberRosterForPlayerLootShare(PartyBase playerParty)
Parameters
playerPartyPartyBase
Returns
OnTroopKilled(UniqueTroopDescriptor)
public void OnTroopKilled(UniqueTroopDescriptor troopDesc1)
Parameters
troopDesc1UniqueTroopDescriptor
OnTroopRouted(UniqueTroopDescriptor)
public void OnTroopRouted(UniqueTroopDescriptor troopDesc1)
Parameters
troopDesc1UniqueTroopDescriptor
OnTroopScoreHit(UniqueTroopDescriptor, CharacterObject, int, bool, bool, WeaponComponentData, bool)
public void OnTroopScoreHit(UniqueTroopDescriptor troopDesc1, CharacterObject attackedTroop, int damage, bool isFatal, bool isTeamKill, WeaponComponentData attackerWeapon, bool isSimulatedHit)
Parameters
troopDesc1UniqueTroopDescriptorattackedTroopCharacterObjectdamageintisFatalboolisTeamKillboolattackerWeaponWeaponComponentDataisSimulatedHitbool
OnTroopWounded(UniqueTroopDescriptor)
public void OnTroopWounded(UniqueTroopDescriptor troopDesc1)
Parameters
troopDesc1UniqueTroopDescriptor
PrisonerRosterForPlayerLootShare(PartyBase)
public TroopRoster PrisonerRosterForPlayerLootShare(PartyBase playerParty)
Parameters
playerPartyPartyBase
Returns
RecalculateMemberCountOfSide()
public int RecalculateMemberCountOfSide()
Returns
RecalculateStrengthOfSide()
public float RecalculateStrengthOfSide()
Returns
SelectRandomSimulationTroop()
public UniqueTroopDescriptor SelectRandomSimulationTroop()
Returns
Surrender()
public void Surrender()
UpdatePartiesMoveState()
public void UpdatePartiesMoveState()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).