Class PartyBase
- Namespace
- TaleWorlds.CampaignSystem.Party
- Assembly
- TaleWorlds.CampaignSystem.dll
public sealed class PartyBase : IBattleCombatant, IRandomOwner
- Inheritance
-
PartyBase
- Implements
- Inherited Members
- Extension Methods
Constructors
PartyBase(MobileParty)
public PartyBase(MobileParty mobileParty)
Parameters
mobileParty
MobileParty
PartyBase(Settlement)
public PartyBase(Settlement settlement)
Parameters
settlement
Settlement
Properties
AlternativeColorPair
public Tuple<uint, uint> AlternativeColorPair { get; }
Property Value
AverageBearingRotation
[SaveableProperty(12)]
public float AverageBearingRotation { get; set; }
Property Value
Banner
public Banner Banner { get; }
Property Value
BasicCulture
public BasicCultureObject BasicCulture { get; }
Property Value
Culture
public CultureObject Culture { get; }
Property Value
DaysStarving
public float DaysStarving { get; }
Property Value
General
public BasicCharacterObject General { get; }
Property Value
Id
public string Id { get; }
Property Value
Index
public int Index { get; }
Property Value
InventoryCapacity
public int InventoryCapacity { get; }
Property Value
IsActive
public bool IsActive { get; }
Property Value
IsMobile
public bool IsMobile { get; }
Property Value
IsSettlement
public bool IsSettlement { get; }
Property Value
IsStarving
public bool IsStarving { get; }
Property Value
IsValid
public bool IsValid { get; }
Property Value
IsVisible
public bool IsVisible { get; }
Property Value
IsVisualDirty
[CachedData]
public bool IsVisualDirty { get; }
Property Value
ItemRoster
[SaveableProperty(5)]
public ItemRoster ItemRoster { get; }
Property Value
LeaderHero
public Hero LeaderHero { get; }
Property Value
LevelMaskIsDirty
public bool LevelMaskIsDirty { get; }
Property Value
MainParty
public static PartyBase MainParty { get; }
Property Value
MapEntity
public IMapEntity MapEntity { get; }
Property Value
MapEvent
public MapEvent MapEvent { get; }
Property Value
MapEventSide
public MapEventSide MapEventSide { get; set; }
Property Value
MapFaction
public IFaction MapFaction { get; }
Property Value
MemberRoster
[SaveableProperty(3)]
public TroopRoster MemberRoster { get; }
Property Value
MobileParty
[SaveableProperty(2)]
public MobileParty MobileParty { get; }
Property Value
Name
public TextObject Name { get; }
Property Value
NumberOfAllMembers
public int NumberOfAllMembers { get; }
Property Value
NumberOfHealthyMembers
public int NumberOfHealthyMembers { get; }
Property Value
NumberOfMenWithHorse
public int NumberOfMenWithHorse { get; }
Property Value
NumberOfMenWithoutHorse
public int NumberOfMenWithoutHorse { get; }
Property Value
NumberOfMounts
public int NumberOfMounts { get; }
Property Value
NumberOfPackAnimals
public int NumberOfPackAnimals { get; }
Property Value
NumberOfPrisoners
public int NumberOfPrisoners { get; }
Property Value
NumberOfRegularMembers
public int NumberOfRegularMembers { get; }
Property Value
NumberOfWoundedTotalMembers
public int NumberOfWoundedTotalMembers { get; }
Property Value
OpponentSide
public BattleSideEnum OpponentSide { get; }
Property Value
Owner
public Hero Owner { get; }
Property Value
PartySizeLimit
public int PartySizeLimit { get; }
Property Value
PartySizeLimitExplainer
public ExplainedNumber PartySizeLimitExplainer { get; }
Property Value
Position2D
public Vec2 Position2D { get; }
Property Value
PrimaryColorPair
public Tuple<uint, uint> PrimaryColorPair { get; }
Property Value
PrisonRoster
[SaveableProperty(4)]
public TroopRoster PrisonRoster { get; }
Property Value
PrisonerHeroes
public IEnumerable<CharacterObject> PrisonerHeroes { get; }
Property Value
PrisonerSizeLimit
public int PrisonerSizeLimit { get; }
Property Value
PrisonerSizeLimitExplainer
public ExplainedNumber PrisonerSizeLimitExplainer { get; }
Property Value
RandomValue
[SaveableProperty(210)]
public int RandomValue { get; }
Property Value
RemainingFoodPercentage
public int RemainingFoodPercentage { get; set; }
Property Value
Settlement
[SaveableProperty(1)]
public Settlement Settlement { get; }
Property Value
Side
public BattleSideEnum Side { get; }
Property Value
SiegeEvent
public SiegeEvent SiegeEvent { get; }
Property Value
TotalStrength
public float TotalStrength { get; }
Property Value
Methods
AddElementToMemberRoster(CharacterObject, int, bool)
public int AddElementToMemberRoster(CharacterObject element, int numberToAdd, bool insertAtFront = false)
Parameters
element
CharacterObjectnumberToAdd
intinsertAtFront
bool
Returns
AddMember(CharacterObject, int, int)
public int AddMember(CharacterObject element, int numberToAdd, int numberToAddWounded = 0)
Parameters
element
CharacterObjectnumberToAdd
intnumberToAddWounded
int
Returns
AddMembers(TroopRoster)
public void AddMembers(TroopRoster roster)
Parameters
roster
TroopRoster
AddPrisoner(CharacterObject, int)
public int AddPrisoner(CharacterObject element, int numberToAdd)
Parameters
element
CharacterObjectnumberToAdd
int
Returns
AddPrisoners(TroopRoster)
public void AddPrisoners(TroopRoster roster)
Parameters
roster
TroopRoster
AddToMemberRosterElementAtIndex(int, int, int)
public void AddToMemberRosterElementAtIndex(int index, int numberToAdd, int woundedCount = 0)
Parameters
GetNumberOfHealthyMenOfTier(int)
public int GetNumberOfHealthyMenOfTier(int tier)
Parameters
tier
int
Returns
GetNumberOfMenWith(TraitObject)
public int GetNumberOfMenWith(TraitObject trait)
Parameters
trait
TraitObject
Returns
IsPositionOkForTraveling(Vec2)
public static bool IsPositionOkForTraveling(Vec2 position)
Parameters
position
Vec2
Returns
OnConsumedFood()
public void OnConsumedFood()
OnGameInitialized()
public void OnGameInitialized()
OnLevelMaskUpdated()
public void OnLevelMaskUpdated()
OnVisibilityChanged(bool)
public void OnVisibilityChanged(bool value)
Parameters
value
bool
OnVisualsUpdated()
public void OnVisualsUpdated()
PlaceRandomPositionAroundPosition(Vec2, float)
public void PlaceRandomPositionAroundPosition(Vec2 centerPosition, float radius)
Parameters
ResetTempXp()
public void ResetTempXp()
SetAsCameraFollowParty()
public void SetAsCameraFollowParty()
SetCustomOwner(Hero)
public void SetCustomOwner(Hero customOwner)
Parameters
customOwner
Hero
SetLevelMaskIsDirty()
public void SetLevelMaskIsDirty()
SetVisualAsDirty()
public void SetVisualAsDirty()
ToString()
public override string ToString()
Returns
UpdateVisibilityAndInspected(float)
public void UpdateVisibilityAndInspected(float mainPartySeeingRange = 0)
Parameters
mainPartySeeingRange
float
WoundMemberRosterElements(CharacterObject, int)
public void WoundMemberRosterElements(CharacterObject elementObj, int numberToWound)
Parameters
elementObj
CharacterObjectnumberToWound
int
WoundMemberRosterElementsWithIndex(int, int)
public void WoundMemberRosterElementsWithIndex(int elementIndex, int numberToWound)
Parameters
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).