Class VegetationConfig
Configuration class for adding custom vegetation.
Use this in a constructor of CustomVegetation and
Use this in a constructor of CustomVegetation and
Inheritance
System.Object
VegetationConfig
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Jotunn.Configs
Assembly: Jotunn.dll
Syntax
public class VegetationConfig
Constructors
| Improve this Doc View SourceVegetationConfig()
Create a new VegetationConfig
Declaration
public VegetationConfig()
VegetationConfig(ZoneSystem.ZoneVegetation)
Create a copy of the
Declaration
public VegetationConfig(ZoneSystem.ZoneVegetation zoneVegetation)
Parameters
Type | Name | Description |
---|---|---|
ZoneSystem.ZoneVegetation | zoneVegetation | ZoneVegetation to copy |
Properties
| Improve this Doc View SourceBiome
Biome to spawn in, can be bitwise or'ed toghether to allow multiple Biomes (Heightmap.Biome.Meadows | Heightmap.Biome.Forest)
Declaration
public Heightmap.Biome Biome { get; set; }
Property Value
Type | Description |
---|---|
Heightmap.Biome |
BiomeArea
BiomeArea to spawn in, defaults to Everything
Declaration
public Heightmap.BiomeArea BiomeArea { get; set; }
Property Value
Type | Description |
---|---|
Heightmap.BiomeArea |
BlockCheck
Do a check before placing that there is nothing already from layers: "Default", "static_solid", "Default_small", "piece"
Declaration
public bool BlockCheck { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ForcePlacement
Unlike what the name suggets, Valheim will attempt 50 times the normal amount of placements, almost guaranteeing that everything will be placed
Declaration
public bool ForcePlacement { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ForestThresholdMax
Maximum value of the forest fractal:
0 - 1: inside the forest
1: forest edge
1 - infinity: outside the forest
Declaration
public float ForestThresholdMax { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
ForestThresholdMin
Minimum value of the forest fractal:
0 - 1: inside the forest
1: forest edge
1 - infinity: outside the forest
Declaration
public float ForestThresholdMin { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
GroundOffset
Placement offset, use negatives to bury underground
Declaration
public float GroundOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
GroupRadius
Radius of group
Declaration
public float GroupRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
GroupSizeMax
Maximum amount in group
Declaration
public int GroupSizeMax { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
GroupSizeMin
Minimum amount in group
Declaration
public int GroupSizeMin { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
InForest
Enable to check forest thresholds against the forest fractal.
Declaration
public bool InForest { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Max
Values between 0 - 1 are used as a chance to place
Values above 1 are used as integer amount of maximum per zone
Declaration
public float Max { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MaxAltitude
Maximum altitude of the vegetation
Declaration
public float MaxAltitude { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MaxOceanDepth
Maximum ocean depth
Declaration
public float MaxOceanDepth { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MaxTerrainDelta
Maximum terrain delta (difference between min and max height) in the circle defined by TerrainDeltaRadius
Declaration
public float MaxTerrainDelta { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MaxTilt
Maximum tilt in degrees
Declaration
public float MaxTilt { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Min
Minimum amount per zone
Declaration
public float Min { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MinAltitude
Minimal altitude of the vegetation
Declaration
public float MinAltitude { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MinOceanDepth
Minimum ocean depth
Declaration
public float MinOceanDepth { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MinTerrainDelta
Minimum terrain delta (difference between min and max height) in the circle defined by TerrainDeltaRadius
Declaration
public float MinTerrainDelta { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
MinTilt
Minimum tilt in degrees
Declaration
public float MinTilt { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
ScaleMax
Maximum scale of place instances
Declaration
public float ScaleMax { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
ScaleMin
Minimum scale of placed instances
Declaration
public float ScaleMin { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
TerrainDeltaRadius
Size of the circle used to determine terrain delta
Declaration
public float TerrainDeltaRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Single |