Skip to content

Allow generating the pack without needing the server to be initialized.#48

Merged
iam4722202468 merged 2 commits intoAtlasEngineCa:masterfrom
paolobettelini:master
Jun 2, 2025
Merged

Allow generating the pack without needing the server to be initialized.#48
iam4722202468 merged 2 commits intoAtlasEngineCa:masterfrom
paolobettelini:master

Conversation

@paolobettelini
Copy link
Contributor

@paolobettelini paolobettelini commented Jun 2, 2025

The class ModelEngine had a static block registering events to the global listener.
This code was being executed even if one was just using PackBuilder.Generate without having initialized the server, so I moved it at the beginning of ModelEngine.loadMappings.
In my opinion, it would be useful to move this bit of code into a separate function ModelEngine.addEventNode(eventNode), so that the user has to specify the EventNode. I also renamed PackBuilder.Generate to PackBuilder.generate.

@iam4722202468
Copy link
Member

LGTM 👍

@iam4722202468 iam4722202468 merged commit d050330 into AtlasEngineCa:master Jun 2, 2025
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.

2 participants