Class CustomPartyComponent
- Namespace
- TaleWorlds.CampaignSystem.Party.PartyComponents
- Assembly
- TaleWorlds.CampaignSystem.dll
public class CustomPartyComponent : PartyComponent
- Inheritance
-
CustomPartyComponent
- Inherited Members
Constructors
CustomPartyComponent()
public CustomPartyComponent()
Fields
_avoidHostileActions
[SaveableField(70)]
public bool _avoidHostileActions
Field Value
Properties
AvoidHostileActions
public override bool AvoidHostileActions { get; }
Property Value
BaseSpeed
public float BaseSpeed { get; }
Property Value
CustomPartyBaseSpeed
public float CustomPartyBaseSpeed { get; set; }
Property Value
HomeSettlement
public override Settlement HomeSettlement { get; }
Property Value
Name
public override TextObject Name { get; }
Property Value
PartyOwner
public override Hero PartyOwner { get; }
Property Value
Methods
AutoGeneratedInstanceCollectObjects(List<object>)
protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
CreateQuestParty(Vec2, float, Settlement, TextObject, Clan, PartyTemplateObject, Hero, int, string, string, float, bool)
public static MobileParty CreateQuestParty(Vec2 position, float spawnRadius, Settlement homeSettlement, TextObject name, Clan clan, PartyTemplateObject partyTemplate, Hero owner, int troopLimit = 0, string partyMountStringId = "", string partyHarnessStringId = "", float customPartyBaseSpeed = 0, bool avoidHostileActions = false)
Parameters
position
Vec2spawnRadius
floathomeSettlement
Settlementname
TextObjectclan
ClanpartyTemplate
PartyTemplateObjectowner
HerotroopLimit
intpartyMountStringId
stringpartyHarnessStringId
stringcustomPartyBaseSpeed
floatavoidHostileActions
bool
Returns
CreateQuestParty(Vec2, float, Settlement, TextObject, Clan, TroopRoster, TroopRoster, Hero, string, string, float, bool)
public static MobileParty CreateQuestParty(Vec2 position, float spawnRadius, Settlement homeSettlement, TextObject name, Clan clan, TroopRoster troopRoster, TroopRoster prisonerRoster, Hero owner, string partyMountStringId = "", string partyHarnessStringId = "", float customPartyBaseSpeed = 0, bool avoidHostileActions = false)
Parameters
position
Vec2spawnRadius
floathomeSettlement
Settlementname
TextObjectclan
ClantroopRoster
TroopRosterprisonerRoster
TroopRosterowner
HeropartyMountStringId
stringpartyHarnessStringId
stringcustomPartyBaseSpeed
floatavoidHostileActions
bool
Returns
GetMountAndHarnessVisualIdsForPartyIcon(PartyBase, out string, out string)
public override void GetMountAndHarnessVisualIdsForPartyIcon(PartyBase party, out string mountStringId, out string harnessStringId)
Parameters
SetBaseSpeed(float)
public void SetBaseSpeed(float speed)
Parameters
speed
float
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).