Skip to content

Added an Eventbus to the generator.#105

Open
KwemberDev wants to merge 2 commits intofnar:masterfrom
KwemberDev:master
Open

Added an Eventbus to the generator.#105
KwemberDev wants to merge 2 commits intofnar:masterfrom
KwemberDev:master

Conversation

@KwemberDev
Copy link
Copy Markdown

This way other mods and internal components can be notified of a generation through the forge event bus.

Added the following general events:
These contain information on the dungeons world, start coordinate, dimension and dungeon ID.

  • SuggestGen
    Posted when the generator considers generating a dungeon, can be cancelled to cancel the dungeon generation.

  • Pre
    Posted just before the dungeon starts generating.

  • Post
    Posted after the dungeon finished generating.

I also added an event for the generation of the dungeons layers, to get their coordinate information.
(This one is important for me xD)

  • eventParts
    Posted after a dungeon finished generating. Contains the actual BB of one of the dungeons levels.

… components) can be notified of a generation through the forge event bus.

Added the following general events:
These contain information on the dungeons World, start coordinate, dimension and Dungeon ID.

- SuggestGen
Posted when the generator considers generating a dungeon, can be cancelled to cancel the dungeon generation.

- Pre
Posted just before the dungeon starts generating.

- Post
Posted after the dungeon finished generating.

I also added an event for the generation of the dungeons layers, to get their coordinate information. (This one is important for me xD)

- eventParts
Posted after a dungeon finished generating. Contains the actual BB of one of the dungeons levels.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant