Show / Hide Table of Contents

Class LocationConfig

Configuration class for adding custom locations.
Use this in a constructor of CustomLocation and
Inheritance
object
LocationConfig
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Jotunn.Configs
Assembly: Jotunn.dll
Syntax
public class LocationConfig

Constructors

Name Description
LocationConfig() Create a new LocationConfig
LocationConfig(ZoneLocation) Create a copy of the ZoneSystem.ZoneLocation

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
ExteriorRadius Radius of the location. Terrain delta is calculated within this circle.
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
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

PrefabExtension.FixReferences(object)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾