-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DungeonManager #430
DungeonManager #430
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This are my first comments reading the code, overall pretty good.
The DungeonGeneratorTheme helper looks fine too me.
…onstructor functions to use new RoomConfig.ApplyConfig method
…AddPrefab instead
…nDungeonDBStarted.
…iececonfig.cs # Conflicts: # JotunnLib/Entities/CustomRoom.cs
…will parse a custom Theme value to string or attempt to parse vanilla Theme value to string
…7. Add method GetCustomRoomTheme to retrieve and return a new Room Theme, which was added to list of Room Themes.
…ad. Add IsCustomTheme flag. Combine GetCustomRoomTheme and GetVanillaRoomTheme functions.
24ce92e
to
ac77105
Compare
Rebased my branch to latest dev & Cherrypicked warp's PR changes. I've got more changes pending, but wanted to get these up. |
Fully removed Theme properties from RoomConfig & CustomRoom Formalized and documented static helpers in CustomRoom Several adjustments in DungeonManager to drive room selection without the Theme properties. Added a warning to DungeonManager.OnDungeonGeneratorSetupAvailableRooms to note when a generator has no defined themename and a Room.Theme.None value.
@@ -251,7 +256,7 @@ private void OnZoneSystemSetupLocations() | |||
|
|||
var env = kvp.Value; | |||
env.FixReferences(true); | |||
UnityEngine.Object.Instantiate<GameObject>(env, DungeonRoomContainer.transform); | |||
UnityEngine.Object.Instantiate<GameObject>(env); // Intentionally omitting DungeonRoomContainer.transform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The env gameobject needs to be enabled in order for the component awakes to run.
Adding a new DungeonManager to Jotunn, allowing devs to add custom dungeon rooms to Valheim.