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
conditionFunc<Settlement, bool>toMapPointIMapPoint
Returns
FindNearestFortification(Func<Settlement, bool>, IMapPoint)
public static Settlement FindNearestFortification(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null)
Parameters
conditionFunc<Settlement, bool>toMapPointIMapPoint
Returns
FindNearestHideout(Func<Settlement, bool>, IMapPoint)
public static Settlement FindNearestHideout(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null)
Parameters
conditionFunc<Settlement, bool>toMapPointIMapPoint
Returns
FindNearestSettlement(Func<Settlement, bool>, IMapPoint)
public static Settlement FindNearestSettlement(Func<Settlement, bool> condition, IMapPoint toMapPoint = null)
Parameters
conditionFunc<Settlement, bool>toMapPointIMapPoint
Returns
FindNearestTown(Func<Settlement, bool>, IMapPoint)
public static Settlement FindNearestTown(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null)
Parameters
conditionFunc<Settlement, bool>toMapPointIMapPoint
Returns
FindNearestVillage(Func<Settlement, bool>, IMapPoint)
public static Settlement FindNearestVillage(Func<Settlement, bool> condition = null, IMapPoint toMapPoint = null)
Parameters
conditionFunc<Settlement, bool>toMapPointIMapPoint
Returns
FindNextSettlementAroundMapPoint(IMapPoint, float, int)
public static int FindNextSettlementAroundMapPoint(IMapPoint mapPoint, float maxDistance, int lastIndex)
Parameters
Returns
FindRandomHideout(Func<Settlement, bool>)
public static Settlement FindRandomHideout(Func<Settlement, bool> condition = null)
Parameters
conditionFunc<Settlement, bool>
Returns
FindRandomSettlement(Func<Settlement, bool>)
public static Settlement FindRandomSettlement(Func<Settlement, bool> condition = null)
Parameters
conditionFunc<Settlement, bool>
Returns
GetAllHeroesOfSettlement(Settlement, bool)
public static IEnumerable<Hero> GetAllHeroesOfSettlement(Settlement settlement, bool includePrisoners)
Parameters
settlementSettlementincludePrisonersbool
Returns
GetBestSettlementToSpawnAround(Hero)
public static Settlement GetBestSettlementToSpawnAround(Hero hero)
Parameters
heroHero
Returns
GetRandomStuff(bool)
public static string GetRandomStuff(bool isFemale)
Parameters
isFemalebool
Returns
GetRandomTown(Clan)
public static Settlement GetRandomTown(Clan fromFaction = null)
Parameters
fromFactionClan
Returns
IsGarrisonStarving(Settlement)
public static bool IsGarrisonStarving(Settlement settlement)
Parameters
settlementSettlement
Returns
IsThereAnyVolunteerCanBeRecruitedForGarrison(Settlement)
public static bool IsThereAnyVolunteerCanBeRecruitedForGarrison(Settlement settlement)
Parameters
settlementSettlement
Returns
NumberOfVolunteersCanBeRecruitedForGarrison(Settlement)
public static int NumberOfVolunteersCanBeRecruitedForGarrison(Settlement settlement)
Parameters
settlementSettlement
Returns
SpawnNotablesIfNeeded(Settlement)
public static void SpawnNotablesIfNeeded(Settlement settlement)
Parameters
settlementSettlement
TakeEnemyVillagersOutsideSettlements(Settlement)
public static void TakeEnemyVillagersOutsideSettlements(Settlement settlementWhichChangedFaction)
Parameters
settlementWhichChangedFactionSettlement
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).