Show / Hide Table of Contents

Class CustomVegetation

Main interface for adding custom vegetation to the game.
All custom vegetation have to be wrapped inside this class to add it to Jötunns ZoneManager.
Inheritance
object
CustomEntity
CustomVegetation
Inherited Members
CustomEntity.SourceMod
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Jotunn.Entities
Assembly: Jotunn.dll
Syntax
public class CustomVegetation : CustomEntity

Constructors

Name Description
CustomVegetation(AssetBundle, string, bool, VegetationConfig) Custom vegetation from a prefab loaded from an AssetBundle.
Can fix references for mocks.
CustomVegetation(GameObject, bool, VegetationConfig) Custom vegetation from a prefab.
Can fix references for mocks.

Properties

Name Description
FixReference Indicator if references from Mock<T>s will be replaced at runtime.
Name Name of this custom vegetation
Prefab The prefab for this custom vegetation.
Vegetation Associated ZoneSystem.ZoneVegetation component

Methods

Name Description
IsCustomVegetation(string) Helper method to determine if a prefab with a given name is a custom Vegetation created with Jötunn.
IsValid() Checks if a custom vegetation is valid (i.e. has a prefab, an ItemDrop and an icon, if it should be craftable).
ToString() Returns a string that represents the current object.

Extension Methods

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