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
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
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
FindNearestSettlement(Func<Settlement, bool>, IMapPoint)
public static Settlement FindNearestSettlement(Func<Settlement, bool> condition, IMapPoint toMapPoint = null)
Parameters
condition
Func<Settlement, bool>toMapPoint
IMapPoint
Returns
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
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
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
condition
Func<Settlement, bool>
Returns
FindRandomSettlement(Func<Settlement, bool>)
public static Settlement FindRandomSettlement(Func<Settlement, bool> condition = null)
Parameters
condition
Func<Settlement, bool>
Returns
GetAllHeroesOfSettlement(Settlement, bool)
public static IEnumerable<Hero> GetAllHeroesOfSettlement(Settlement settlement, bool includePrisoners)
Parameters
settlement
SettlementincludePrisoners
bool
Returns
GetBestSettlementToSpawnAround(Hero)
public static Settlement GetBestSettlementToSpawnAround(Hero hero)
Parameters
hero
Hero
Returns
GetRandomStuff(bool)
public static string GetRandomStuff(bool isFemale)
Parameters
isFemale
bool
Returns
GetRandomTown(Clan)
public static Settlement GetRandomTown(Clan fromFaction = null)
Parameters
fromFaction
Clan
Returns
IsGarrisonStarving(Settlement)
public static bool IsGarrisonStarving(Settlement settlement)
Parameters
settlement
Settlement
Returns
IsThereAnyVolunteerCanBeRecruitedForGarrison(Settlement)
public static bool IsThereAnyVolunteerCanBeRecruitedForGarrison(Settlement settlement)
Parameters
settlement
Settlement
Returns
NumberOfVolunteersCanBeRecruitedForGarrison(Settlement)
public static int NumberOfVolunteersCanBeRecruitedForGarrison(Settlement settlement)
Parameters
settlement
Settlement
Returns
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).