M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.Settlements.Locations.Location Class Reference

Public Member Functions

 Location (string stringId, TextObject name, TextObject doorName, int prosperityMax, bool isIndoor, bool canBeReserved, string playerCanEnter, string playerCanSee, string aiCanExit, string aiCanEnter, string[] sceneNames, LocationComplex locationComplex)
 
 Location (Location location, LocationComplex locationComplex)
 
void Initialize (Location locationTemplate, LocationComplex ownerComplex)
 
bool CanAIExit (LocationCharacter character)
 
bool CanAIEnter (LocationCharacter character)
 
bool CanPlayerEnter ()
 
bool CanPlayerSee ()
 
void ReserveLocation (TextObject locationName, TextObject doorName)
 
void RemoveReservation ()
 
void SetOwnerComplex (LocationComplex locationComplex)
 
void AddCharacter (LocationCharacter locationCharacter)
 
void AddLocationCharacters (CreateLocationCharacterDelegate createDelegate, CultureObject culture, LocationCharacter.CharacterRelations relation, int count)
 
void AddSpecialItem (ItemObject itemObject)
 
string GetSceneName (int upgradeLevel)
 
void SetSceneName (int upgradeLevel, string sceneName)
 
int GetSceneCount ()
 
void RemoveAllHeroCharactersFromPrison ()
 
void RemoveAllCharacters ()
 
void RemoveAllCharacters (Predicate< LocationCharacter > predicate)
 
void RemoveLocationCharacter (LocationCharacter locationCharacter)
 
void RemoveCharacter (Hero hero)
 
bool ContainsCharacter (LocationCharacter locationCharacter)
 
bool ContainsCharacter (Hero hero)
 
void AddPassageToLocation (Location passageToLocation)
 
IEnumerable< LocationCharacterGetCharacterList ()
 
Location GetPassageToLocation (string locationId)
 
void OnAIChangeLocation (Location previousLocation)
 
LocationCharacter GetLocationCharacter (Hero hero)
 
LocationCharacter GetLocationCharacter (IAgentOriginBase agentOrigin)
 

Public Attributes

int ProsperityMax
 

Properties

string StringId [get]
 
List< ItemObjectSpecialItems [get]
 
bool IsReserved [get]
 
List< LocationLocationsOfPassages [get]
 
TextObject Name [get]
 
TextObject DoorName [get]
 
bool IsIndoor [get]
 
bool CanBeReserved [get]
 
int CharacterCount [get]
 

Constructor & Destructor Documentation

◆ Location() [1/2]

TaleWorlds.CampaignSystem.Settlements.Locations.Location.Location ( string  stringId,
TextObject  name,
TextObject  doorName,
int  prosperityMax,
bool  isIndoor,
bool  canBeReserved,
string  playerCanEnter,
string  playerCanSee,
string  aiCanExit,
string  aiCanEnter,
string[]  sceneNames,
LocationComplex  locationComplex 
)

◆ Location() [2/2]

TaleWorlds.CampaignSystem.Settlements.Locations.Location.Location ( Location  location,
LocationComplex  locationComplex 
)

Member Function Documentation

◆ Initialize()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.Initialize ( Location  locationTemplate,
LocationComplex  ownerComplex 
)

◆ CanAIExit()

bool TaleWorlds.CampaignSystem.Settlements.Locations.Location.CanAIExit ( LocationCharacter  character)

◆ CanAIEnter()

bool TaleWorlds.CampaignSystem.Settlements.Locations.Location.CanAIEnter ( LocationCharacter  character)

◆ CanPlayerEnter()

bool TaleWorlds.CampaignSystem.Settlements.Locations.Location.CanPlayerEnter ( )

◆ CanPlayerSee()

bool TaleWorlds.CampaignSystem.Settlements.Locations.Location.CanPlayerSee ( )

◆ ReserveLocation()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.ReserveLocation ( TextObject  locationName,
TextObject  doorName 
)

◆ RemoveReservation()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.RemoveReservation ( )

◆ SetOwnerComplex()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.SetOwnerComplex ( LocationComplex  locationComplex)

◆ AddCharacter()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.AddCharacter ( LocationCharacter  locationCharacter)

◆ AddLocationCharacters()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.AddLocationCharacters ( CreateLocationCharacterDelegate  createDelegate,
CultureObject  culture,
LocationCharacter.CharacterRelations  relation,
int  count 
)

◆ AddSpecialItem()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.AddSpecialItem ( ItemObject  itemObject)

◆ GetSceneName()

string TaleWorlds.CampaignSystem.Settlements.Locations.Location.GetSceneName ( int  upgradeLevel)

◆ SetSceneName()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.SetSceneName ( int  upgradeLevel,
string  sceneName 
)

◆ GetSceneCount()

int TaleWorlds.CampaignSystem.Settlements.Locations.Location.GetSceneCount ( )

◆ RemoveAllHeroCharactersFromPrison()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.RemoveAllHeroCharactersFromPrison ( )

◆ RemoveAllCharacters() [1/2]

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.RemoveAllCharacters ( )

◆ RemoveAllCharacters() [2/2]

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.RemoveAllCharacters ( Predicate< LocationCharacter predicate)

◆ RemoveLocationCharacter()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.RemoveLocationCharacter ( LocationCharacter  locationCharacter)

◆ RemoveCharacter()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.RemoveCharacter ( Hero  hero)

◆ ContainsCharacter() [1/2]

bool TaleWorlds.CampaignSystem.Settlements.Locations.Location.ContainsCharacter ( LocationCharacter  locationCharacter)

◆ ContainsCharacter() [2/2]

bool TaleWorlds.CampaignSystem.Settlements.Locations.Location.ContainsCharacter ( Hero  hero)

◆ AddPassageToLocation()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.AddPassageToLocation ( Location  passageToLocation)

◆ GetCharacterList()

IEnumerable< LocationCharacter > TaleWorlds.CampaignSystem.Settlements.Locations.Location.GetCharacterList ( )

◆ GetPassageToLocation()

Location TaleWorlds.CampaignSystem.Settlements.Locations.Location.GetPassageToLocation ( string  locationId)

◆ OnAIChangeLocation()

void TaleWorlds.CampaignSystem.Settlements.Locations.Location.OnAIChangeLocation ( Location  previousLocation)

◆ GetLocationCharacter() [1/2]

LocationCharacter TaleWorlds.CampaignSystem.Settlements.Locations.Location.GetLocationCharacter ( Hero  hero)

◆ GetLocationCharacter() [2/2]

LocationCharacter TaleWorlds.CampaignSystem.Settlements.Locations.Location.GetLocationCharacter ( IAgentOriginBase  agentOrigin)

Member Data Documentation

◆ ProsperityMax

int TaleWorlds.CampaignSystem.Settlements.Locations.Location.ProsperityMax

Property Documentation

◆ StringId

string TaleWorlds.CampaignSystem.Settlements.Locations.Location.StringId
get

◆ SpecialItems

List<ItemObject> TaleWorlds.CampaignSystem.Settlements.Locations.Location.SpecialItems
get

◆ IsReserved

bool TaleWorlds.CampaignSystem.Settlements.Locations.Location.IsReserved
get

◆ LocationsOfPassages

List<Location> TaleWorlds.CampaignSystem.Settlements.Locations.Location.LocationsOfPassages
get

◆ Name

TextObject TaleWorlds.CampaignSystem.Settlements.Locations.Location.Name
get

◆ DoorName

TextObject TaleWorlds.CampaignSystem.Settlements.Locations.Location.DoorName
get

◆ IsIndoor

bool TaleWorlds.CampaignSystem.Settlements.Locations.Location.IsIndoor
get

◆ CanBeReserved

bool TaleWorlds.CampaignSystem.Settlements.Locations.Location.CanBeReserved
get

◆ CharacterCount

int TaleWorlds.CampaignSystem.Settlements.Locations.Location.CharacterCount
get