Class LocationConfig
Configuration class for adding custom locations.
Use this in a constructor of
CustomLocation and
Inheritance
LocationConfig
Assembly: Jotunn.dll
Syntax
public class LocationConfig
Constructors
Properties
| Name |
Description |
|
Biome
|
Biome to spawn in, multiple Biomes can be allowed with AnyBiomeOf(params Biome[]) |
|
BiomeArea
|
BiomeArea to spawn in, defaults to Everything |
|
CenterFirst
|
Attempt to place in the central zone first |
|
ClearArea
|
Enable to forbid Vegetation from spawning inside the circle defined by ExteriorRadius.
If left unset, falls back to the prefab's Jotunn.Configs.LocationConfig.Location component value when one exists. |
|
ExteriorRadius
|
Radius of the location. Terrain delta is calculated within this circle.
If left unset, falls back to the prefab's Jotunn.Configs.LocationConfig.Location component value when one exists.
Defaults to 10f when no value has been set and no component is present. |
|
ForestTrasholdMax
|
Maximum value of the forest fractal:
0 - 1: inside the forest
1: forest edge
1 - infinity: outside the forest |
|
ForestTresholdMin
|
Minimum value of the forest fractal:
0 - 1: inside the forest
1: forest edge
1 - infinity: outside the forest |
|
Group
|
Group of the location. Used with MinDistanceFromSimilar |
|
HasInterior
|
Enable to activate interior handling |
|
IconAlways
|
Always show the associated icon on the minimap |
|
IconPlaced
|
Enable if the location places an icon to push the location icons |
|
InForest
|
Enable to check forest thresholds against the forest fractal. |
|
InteriorEnvironment
|
Environment string used by the interior |
|
InteriorRadius
|
Radius of the interior attached to the location.
If left unset, falls back to the prefab's Jotunn.Configs.LocationConfig.Location component value when one exists. |
|
MaxAltitude
|
Maximum altitude of the location |
|
MaxDistance
|
Maximum distance from the center of the map of the location |
|
MaxTerrainDelta
|
Maximum terrain delta (difference between min and max height) in the circle defined by ExteriorRadius |
|
MinAltitude
|
Minimal altitude of the location |
|
MinDistance
|
Minimum distance from the center of the map of the location |
|
MinDistanceFromSimilar
|
Minimum distance to a similar location, either the same location or a location with the same Group |
|
MinTerrainDelta
|
Minimum terrain delta (difference between min and max height) in the circle defined by ExteriorRadius |
|
Priotized
|
Enable to place this kind of location first, and make it twice as likely that the objects will all be placed (random samples increase from 100,000 to 200,000) |
|
Quantity
|
Upper limit on how many of these locations will be placed in the world |
|
RandomRotation
|
Randomize location rotation when placing |
|
SlopeRotation
|
Rotate towards the average slope of the terrain in the circle defined by ExteriorRadius |
|
SnapToWater
|
Place at water level |
|
Unique
|
Enable to make this location unique, it will not be replaced when locations change |
Methods
| Name |
Description |
|
GetZoneLocation()
|
Converts the LocationConfig to a Valheim style ZoneSystem.ZoneLocation. |
Extension Methods