Show / Hide Table of Contents

Class CustomRoom

Main interface for adding custom dungeon rooms to the game.
All custom rooms have to be wrapped inside this class to add it to Jötunns DungeonManager.
Inheritance
object
CustomEntity
CustomRoom
Inherited Members
CustomEntity.SourceMod
object.ToString()
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 CustomRoom : CustomEntity

Constructors

Name Description
CustomRoom(AssetBundle, string, bool, RoomConfig) Custom room from a prefab loaded from an AssetBundle with a Room made from a RoomConfig.
Can fix references for Mock<T>s.
CustomRoom(GameObject, bool, RoomConfig) Custom room from a prefab loaded from an AssetBundle with a Room made from a RoomConfig.
Can fix references for Mock<T>s.

Properties

Name Description
FixReference Indicator if references from Mock<T>s will be replaced at runtime.
Name The name of this custom room as a shortcut.
Prefab The prefab for this custom room.
Room The Room component for this custom room as a shortcut.
RoomData Associated DungeonDB.RoomData holding data used during generation.
ThemeName Theme name of this room.

Methods

Name Description
GetRoomTheme(string) Helper method to get the global::Room.Theme value, if the given themeName matches any vanilla values.
IsCustomRoom(string) Helper method to determine if a prefab with a given name is a custom room created with Jötunn.
IsVanillaTheme(string) Helper method to determine if a given themeName matches any vanilla global::Room.Theme values.

Extension Methods

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