Show / Hide Table of Contents

Class RoomConfig

Configuration class for adding custom rooms.
Use this in a constructor of CustomRoom
Inheritance
object
RoomConfig
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 RoomConfig

Constructors

Name Description
RoomConfig() Create a new RoomConfig
RoomConfig(string) Create a config with a theme name.

Properties

Name Description
Divider Flag indicating if this room is a divider.
Enabled If set to false, room will not be added to DungeonGenerator.m_availableRooms, thus won't be used during generation.
Endcap Flag indicating if this room is an endcap.
EndcapPrio A rank value to prioritize this endcap over others during generation.
Entrance Flag indicating if this room is a dungeon entrance.
FaceCenter Flag to orient this room towards the center. Used only for generating camps (draugr/fuling villages).
MinPlaceOrder Exclude this room if the adjoining connection's RoomConnection.m_placeOrder is less than this value.
Perimeter Flag to ensure this room is only placed around the perimeter of a camp. Used only for generating camps (draugr/fuling villages).
ThemeName Theme name of this room. If adding a room to a vanilla dungeon, use nameof(Room.Theme.value)
Weight A weight value used to sort available rooms during some modes of generation. Defaults to 1f.

Methods

Name Description
Apply(Room) Converts the RoomConfig to a Valheim style Room.

Extension Methods

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