Class Location
- Namespace
- TaleWorlds.CampaignSystem.Settlements.Locations
- Assembly
- TaleWorlds.CampaignSystem.dll
public class Location
- Inheritance
-
Location
- Inherited Members
Constructors
Location(string, TextObject, TextObject, int, bool, bool, string, string, string, string, string[], LocationComplex)
public 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)
Parameters
stringIdstringnameTextObjectdoorNameTextObjectprosperityMaxintisIndoorboolcanBeReservedboolplayerCanEnterstringplayerCanSeestringaiCanExitstringaiCanEnterstringsceneNamesstring[]locationComplexLocationComplex
Location(Location, LocationComplex)
public Location(Location location, LocationComplex locationComplex)
Parameters
locationLocationlocationComplexLocationComplex
Fields
ProsperityMax
public int ProsperityMax
Field Value
Properties
CanBeReserved
public bool CanBeReserved { get; }
Property Value
CharacterCount
public int CharacterCount { get; }
Property Value
DoorName
public TextObject DoorName { get; }
Property Value
IsIndoor
public bool IsIndoor { get; }
Property Value
IsInitialized
[CachedData]
public bool IsInitialized { get; }
Property Value
IsReserved
[SaveableProperty(30)]
public bool IsReserved { get; }
Property Value
LocationsOfPassages
public List<Location> LocationsOfPassages { get; }
Property Value
Name
public TextObject Name { get; }
Property Value
SpecialItems
[SaveableProperty(20)]
public List<ItemObject> SpecialItems { get; }
Property Value
StringId
[SaveableProperty(10)]
public string StringId { get; }
Property Value
Methods
AddCharacter(LocationCharacter)
public void AddCharacter(LocationCharacter locationCharacter)
Parameters
locationCharacterLocationCharacter
AddLocationCharacters(CreateLocationCharacterDelegate, CultureObject, CharacterRelations, int)
public void AddLocationCharacters(CreateLocationCharacterDelegate createDelegate, CultureObject culture, LocationCharacter.CharacterRelations relation, int count)
Parameters
createDelegateCreateLocationCharacterDelegatecultureCultureObjectrelationLocationCharacter.CharacterRelationscountint
AddPassageToLocation(Location)
public void AddPassageToLocation(Location passageToLocation)
Parameters
passageToLocationLocation
AddSpecialItem(ItemObject)
public void AddSpecialItem(ItemObject itemObject)
Parameters
itemObjectItemObject
AutoGeneratedInstanceCollectObjects(List<object>)
protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
CanAIEnter(LocationCharacter)
public bool CanAIEnter(LocationCharacter character)
Parameters
characterLocationCharacter
Returns
CanAIExit(LocationCharacter)
public bool CanAIExit(LocationCharacter character)
Parameters
characterLocationCharacter
Returns
CanPlayerEnter()
public bool CanPlayerEnter()
Returns
CanPlayerSee()
public bool CanPlayerSee()
Returns
ContainsCharacter(Hero)
public bool ContainsCharacter(Hero hero)
Parameters
heroHero
Returns
ContainsCharacter(LocationCharacter)
public bool ContainsCharacter(LocationCharacter locationCharacter)
Parameters
locationCharacterLocationCharacter
Returns
GetCharacterList()
public IEnumerable<LocationCharacter> GetCharacterList()
Returns
GetLocationCharacter(Hero)
public LocationCharacter GetLocationCharacter(Hero hero)
Parameters
heroHero
Returns
GetLocationCharacter(IAgentOriginBase)
public LocationCharacter GetLocationCharacter(IAgentOriginBase agentOrigin)
Parameters
agentOriginIAgentOriginBase
Returns
GetPassageToLocation(string)
public Location GetPassageToLocation(string locationId)
Parameters
locationIdstring
Returns
GetSceneCount()
public int GetSceneCount()
Returns
GetSceneName(int)
public string GetSceneName(int upgradeLevel)
Parameters
upgradeLevelint
Returns
Initialize(Location, LocationComplex)
public void Initialize(Location locationTemplate, LocationComplex ownerComplex)
Parameters
locationTemplateLocationownerComplexLocationComplex
OnAIChangeLocation(Location)
public void OnAIChangeLocation(Location previousLocation)
Parameters
previousLocationLocation
RemoveAllCharacters()
public void RemoveAllCharacters()
RemoveAllCharacters(Predicate<LocationCharacter>)
public void RemoveAllCharacters(Predicate<LocationCharacter> predicate)
Parameters
predicatePredicate<LocationCharacter>
RemoveAllHeroCharactersFromPrison()
public void RemoveAllHeroCharactersFromPrison()
RemoveCharacter(Hero)
public void RemoveCharacter(Hero hero)
Parameters
heroHero
RemoveLocationCharacter(LocationCharacter)
public void RemoveLocationCharacter(LocationCharacter locationCharacter)
Parameters
locationCharacterLocationCharacter
RemoveReservation()
public void RemoveReservation()
ReserveLocation(TextObject, TextObject)
public void ReserveLocation(TextObject locationName, TextObject doorName)
Parameters
locationNameTextObjectdoorNameTextObject
SetOwnerComplex(LocationComplex)
public void SetOwnerComplex(LocationComplex locationComplex)
Parameters
locationComplexLocationComplex
SetSceneName(int, string)
public void SetSceneName(int upgradeLevel, string sceneName)
Parameters
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).