Class DungeonManager
Manager for handling all custom data added to the game related to creatures.
Inherited Members
Namespace: Jotunn.Managers
Assembly: Jotunn.dll
Syntax
public class DungeonManager
Properties
Name | Description |
---|---|
Instance | The singleton instance of this manager. |
Methods
Name | Description |
---|---|
AddCustomRoom(CustomRoom) | Add a CustomRoom to the game. Checks if the custom room is valid and unique and adds it to the list of custom rooms. |
GetRoom(string) | Get a custom room by its name. |
RegisterDungeonTheme(GameObject, string) | Registers a new dungeon theme, identified by a unique theme name string. Assets can be added at any time and will be registered as soon as the vanilla loader is ready. |
RegisterEnvironment(AssetBundle, string) | Adds a new environment prefab to be registered when ZoneSystem.SetupLocations runs. If you intend to use a custom interior environment Location.m_interiorEnvironment, this method enables you to provide a prefab with an appropriately configured LocationList containing atleast one EnvSetup within LocationList.m_environments. |
RemoveRoom(string) | Remove a custom room by its name. |
Events
Name | Description |
---|---|
OnRoomsRegistered | Event that gets fired after all custom rooms are registered to the DungeonDB. Your code will execute
every time a main scene is started (on joining a game). If you want to execute just once you will need to unregister from the event after execution. |
OnVanillaRoomsAvailable | Event that gets fired after the vanilla DungeonDB has loaded rooms. Your code will execute
every time a main scene is started (on joining a game). If you want to execute just once you will need to unregister from the event after execution. |