Table of Contents

Class SettlementHelper

Namespace
Helpers
Assembly
TaleWorlds.CampaignSystem.dll
public static class SettlementHelper
Inheritance
SettlementHelper
Inherited Members

Methods

FindNearestCastle(Func<Settlement, bool>, IMapPoint)

public static Settlement FindNearestCastle(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null)

Parameters

condition Func<Settlement, bool>
toMapPoint IMapPoint

Returns

Settlement

FindNearestFortification(Func<Settlement, bool>, IMapPoint)

public static Settlement FindNearestFortification(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null)

Parameters

condition Func<Settlement, bool>
toMapPoint IMapPoint

Returns

Settlement

FindNearestHideout(Func<Settlement, bool>, IMapPoint)

public static Settlement FindNearestHideout(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null)

Parameters

condition Func<Settlement, bool>
toMapPoint IMapPoint

Returns

Settlement

FindNearestSettlement(Func<Settlement, bool>, IMapPoint)

public static Settlement FindNearestSettlement(Func<Settlement, bool> condition, IMapPoint toMapPoint = null)

Parameters

condition Func<Settlement, bool>
toMapPoint IMapPoint

Returns

Settlement

FindNearestTown(Func<Settlement, bool>, IMapPoint)

public static Settlement FindNearestTown(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null)

Parameters

condition Func<Settlement, bool>
toMapPoint IMapPoint

Returns

Settlement

FindNearestVillage(Func<Settlement, bool>, IMapPoint)

public static Settlement FindNearestVillage(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null)

Parameters

condition Func<Settlement, bool>
toMapPoint IMapPoint

Returns

Settlement

FindNextSettlementAroundMapPoint(IMapPoint, float, int)

public static int FindNextSettlementAroundMapPoint(IMapPoint mapPoint, float maxDistance, int lastIndex)

Parameters

mapPoint IMapPoint
maxDistance float
lastIndex int

Returns

int

FindRandomHideout(Func<Settlement, bool>)

public static Settlement FindRandomHideout(Func<Settlement, bool> condition = null)

Parameters

condition Func<Settlement, bool>

Returns

Settlement

FindRandomSettlement(Func<Settlement, bool>)

public static Settlement FindRandomSettlement(Func<Settlement, bool> condition = null)

Parameters

condition Func<Settlement, bool>

Returns

Settlement

GetAllHeroesOfSettlement(Settlement, bool)

public static IEnumerable<Hero> GetAllHeroesOfSettlement(Settlement settlement, bool includePrisoners)

Parameters

settlement Settlement
includePrisoners bool

Returns

IEnumerable<Hero>

GetBestSettlementToSpawnAround(Hero)

public static Settlement GetBestSettlementToSpawnAround(Hero hero)

Parameters

hero Hero

Returns

Settlement

GetRandomStuff(bool)

public static string GetRandomStuff(bool isFemale)

Parameters

isFemale bool

Returns

string

GetRandomTown(Clan)

public static Settlement GetRandomTown(Clan fromFaction = null)

Parameters

fromFaction Clan

Returns

Settlement

IsGarrisonStarving(Settlement)

public static bool IsGarrisonStarving(Settlement settlement)

Parameters

settlement Settlement

Returns

bool

IsThereAnyVolunteerCanBeRecruitedForGarrison(Settlement)

public static bool IsThereAnyVolunteerCanBeRecruitedForGarrison(Settlement settlement)

Parameters

settlement Settlement

Returns

bool

NumberOfVolunteersCanBeRecruitedForGarrison(Settlement)

public static int NumberOfVolunteersCanBeRecruitedForGarrison(Settlement settlement)

Parameters

settlement Settlement

Returns

int

SpawnNotablesIfNeeded(Settlement)

public static void SpawnNotablesIfNeeded(Settlement settlement)

Parameters

settlement Settlement

TakeEnemyVillagersOutsideSettlements(Settlement)

public static void TakeEnemyVillagersOutsideSettlements(Settlement settlementWhichChangedFaction)

Parameters

settlementWhichChangedFaction Settlement

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).