Constructor CustomRoom
| Edit this page View SourceCustomRoom(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.
Can fix references for Mock<T>s.
Declaration
public CustomRoom(AssetBundle assetBundle, string assetName, bool fixReference, RoomConfig roomConfig)
Parameters
| Type | Name | Description |
|---|---|---|
| AssetBundle | assetBundle | A preloaded AssetBundle |
| string | assetName | Name of the prefab in the bundle. |
| bool | fixReference | If true references for Mock<T> objects get resolved at runtime by Jötunn. |
| RoomConfig | roomConfig | The config for this custom room. |
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.
Can fix references for Mock<T>s.
Declaration
public CustomRoom(GameObject prefab, bool fixReference, RoomConfig roomConfig)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | prefab | The prefab for this custom room. |
| bool | fixReference | If true references for Mock<T> objects get resolved at runtime by Jötunn. |
| RoomConfig | roomConfig | The config for this custom room. |
CustomRoom(SoftReference<GameObject>, bool, RoomConfig)
Custom room from a SoftReference prefab with a RoomConfig attached. Using SoftReference system.
The prefab is not loaded until the DungeonGenerator needs it during generation.
The prefab is not loaded until the DungeonGenerator needs it during generation.
Declaration
public CustomRoom(SoftReference<GameObject> softReferencePrefab, bool fixReference, RoomConfig roomConfig)
Parameters
| Type | Name | Description |
|---|---|---|
| SoftReference<GameObject> | softReferencePrefab | A SoftReference<T> to the room prefab registered in a SoftRef manifest. |
| bool | fixReference | If true references for Mock<T> objects get resolved at runtime by Jötunn. |
| RoomConfig | roomConfig | The config for this custom room. |