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
stringId
stringname
TextObjectdoorName
TextObjectprosperityMax
intisIndoor
boolcanBeReserved
boolplayerCanEnter
stringplayerCanSee
stringaiCanExit
stringaiCanEnter
stringsceneNames
string[]locationComplex
LocationComplex
Location(Location, LocationComplex)
public Location(Location location, LocationComplex locationComplex)
Parameters
location
LocationlocationComplex
LocationComplex
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
locationCharacter
LocationCharacter
AddLocationCharacters(CreateLocationCharacterDelegate, CultureObject, CharacterRelations, int)
public void AddLocationCharacters(CreateLocationCharacterDelegate createDelegate, CultureObject culture, LocationCharacter.CharacterRelations relation, int count)
Parameters
createDelegate
CreateLocationCharacterDelegateculture
CultureObjectrelation
LocationCharacter.CharacterRelationscount
int
AddPassageToLocation(Location)
public void AddPassageToLocation(Location passageToLocation)
Parameters
passageToLocation
Location
AddSpecialItem(ItemObject)
public void AddSpecialItem(ItemObject itemObject)
Parameters
itemObject
ItemObject
AutoGeneratedInstanceCollectObjects(List<object>)
protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
CanAIEnter(LocationCharacter)
public bool CanAIEnter(LocationCharacter character)
Parameters
character
LocationCharacter
Returns
CanAIExit(LocationCharacter)
public bool CanAIExit(LocationCharacter character)
Parameters
character
LocationCharacter
Returns
CanPlayerEnter()
public bool CanPlayerEnter()
Returns
CanPlayerSee()
public bool CanPlayerSee()
Returns
ContainsCharacter(Hero)
public bool ContainsCharacter(Hero hero)
Parameters
hero
Hero
Returns
ContainsCharacter(LocationCharacter)
public bool ContainsCharacter(LocationCharacter locationCharacter)
Parameters
locationCharacter
LocationCharacter
Returns
GetCharacterList()
public IEnumerable<LocationCharacter> GetCharacterList()
Returns
GetLocationCharacter(Hero)
public LocationCharacter GetLocationCharacter(Hero hero)
Parameters
hero
Hero
Returns
GetLocationCharacter(IAgentOriginBase)
public LocationCharacter GetLocationCharacter(IAgentOriginBase agentOrigin)
Parameters
agentOrigin
IAgentOriginBase
Returns
GetPassageToLocation(string)
public Location GetPassageToLocation(string locationId)
Parameters
locationId
string
Returns
GetSceneCount()
public int GetSceneCount()
Returns
GetSceneName(int)
public string GetSceneName(int upgradeLevel)
Parameters
upgradeLevel
int
Returns
Initialize(Location, LocationComplex)
public void Initialize(Location locationTemplate, LocationComplex ownerComplex)
Parameters
locationTemplate
LocationownerComplex
LocationComplex
OnAIChangeLocation(Location)
public void OnAIChangeLocation(Location previousLocation)
Parameters
previousLocation
Location
RemoveAllCharacters()
public void RemoveAllCharacters()
RemoveAllCharacters(Predicate<LocationCharacter>)
public void RemoveAllCharacters(Predicate<LocationCharacter> predicate)
Parameters
predicate
Predicate<LocationCharacter>
RemoveAllHeroCharactersFromPrison()
public void RemoveAllHeroCharactersFromPrison()
RemoveCharacter(Hero)
public void RemoveCharacter(Hero hero)
Parameters
hero
Hero
RemoveLocationCharacter(LocationCharacter)
public void RemoveLocationCharacter(LocationCharacter locationCharacter)
Parameters
locationCharacter
LocationCharacter
RemoveReservation()
public void RemoveReservation()
ReserveLocation(TextObject, TextObject)
public void ReserveLocation(TextObject locationName, TextObject doorName)
Parameters
locationName
TextObjectdoorName
TextObject
SetOwnerComplex(LocationComplex)
public void SetOwnerComplex(LocationComplex locationComplex)
Parameters
locationComplex
LocationComplex
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).