-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add Dependency Injection Support for WorldGen Plugins #5212
base: develop
Are you sure you want to change the base?
Conversation
...va/org/terasology/engine/world/generator/plugin/UnresolvedWorldGeneratorPluginException.java
Show resolved
Hide resolved
.../src/main/java/org/terasology/engine/world/generator/plugin/WorldGeneratorPluginManager.java
Show resolved
Hide resolved
.../src/main/java/org/terasology/engine/world/generator/plugin/WorldGeneratorPluginManager.java
Show resolved
Hide resolved
My main interrogation was where this Terasology/engine/src/main/java/org/terasology/engine/core/modes/loadProcesses/InitialiseWorld.java Lines 85 to 86 in ae83461
Could anyone confirm this ? |
Although, I am wondering if it would be easier to implement this by just calling Lines 31 to 45 in ae83461
|
@spookynutz Did the review comments help or are you still blocked somehow? Are you planning to continue with this? |
Hello @BenjaminAmos, @jdrueckert, sorry for the delayed response I got taken by work and did not have time to advance the issue ... Terasology/engine/src/main/java/org/terasology/engine/registry/InjectionHelper.java Line 37 in 33dabf5
|
Yes, that is essentially what I think I meant (it was a while ago now). Although the current code is rather guilty of this already, I would prefer that new code does not introduce unecessary abstractions (the less code the better, prioritising readability). |
Hello,
I'm opening this PR to work on the implementation of dependency injection for the WorldGen Plugins.
This PR is opened as a draft as a base for discussion since I'm new to the code and don't quite understand how things work yet.
Contains
Implementation for proposal in #5003