Table of Contents

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

bool

Properties

AvoidHostileActions

public override bool AvoidHostileActions { get; }

Property Value

bool

BaseSpeed

public float BaseSpeed { get; }

Property Value

float

CustomPartyBaseSpeed

public float CustomPartyBaseSpeed { get; set; }

Property Value

float

HomeSettlement

public override Settlement HomeSettlement { get; }

Property Value

Settlement

Name

public override TextObject Name { get; }

Property Value

TextObject

PartyOwner

public override Hero PartyOwner { get; }

Property Value

Hero

Methods

AutoGeneratedInstanceCollectObjects(List<object>)

protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

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 Vec2
spawnRadius float
homeSettlement Settlement
name TextObject
clan Clan
partyTemplate PartyTemplateObject
owner Hero
troopLimit int
partyMountStringId string
partyHarnessStringId string
customPartyBaseSpeed float
avoidHostileActions bool

Returns

MobileParty

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 Vec2
spawnRadius float
homeSettlement Settlement
name TextObject
clan Clan
troopRoster TroopRoster
prisonerRoster TroopRoster
owner Hero
partyMountStringId string
partyHarnessStringId string
customPartyBaseSpeed float
avoidHostileActions bool

Returns

MobileParty

GetMountAndHarnessVisualIdsForPartyIcon(PartyBase, out string, out string)

public override void GetMountAndHarnessVisualIdsForPartyIcon(PartyBase party, out string mountStringId, out string harnessStringId)

Parameters

party PartyBase
mountStringId string
harnessStringId string

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).