-
-
Notifications
You must be signed in to change notification settings - Fork 606
feat: Dynamic registration with KSP #6498
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
base: nextgen
Are you sure you want to change the base?
Conversation
|
|
|
This costs + 500 lines and it adds confusion for new contributors. I mean it is kind of cool, but where is the real benefit? |
|
We don't need to add the new module/command into the array/list in manager manually. And in another hand most of Java clients create module singletons with component scan+annotation+reflection, this might make the "freshman" easier to write. |
@Module(xxxx)
public class ExampleModule extends AbstractModule |
|
However, we do not generate code through reflection but at compile time |
I think so as well. This is way beyond confusing. |
Yes, as I said, it's pretty cool, but I don't see that it is worth the trade off. A new module/command/event is not added very frequently. And if a new one is added, the effort of actually coding the module is much bigger than adding a line to |
|
But I think it's very useful to events because we already have annotations on every event classes/objects By the way about 200 of 500 lines are the copyright header - - |
src/main/kotlin/net/ccbluex/liquidbounce/features/module/modules/render/ModuleDebug.kt
Show resolved
Hide resolved
expand the Contribute section with a mini doc of the codebase, how to REGISTER events, modules, naming conventions and some helpful things for new people who wanna contribute and understand the liquidbounce codebase @MukjepScarlet please do it |
|
I can add comments on the annotations to describe what exactly will be generated. |
|
but if im a newborn and wanna to create my module. where is i can QUICKLY find. how to register my new module? please. maybe add a doc for |
|
If you are a new coder you might first see existing modules, or even directly copy one. That's what I did when I was new to a project. Comments added. |
|
you != all |
|
👍 |
I think it can be applied to Event classes at least. We already have annotation on each of them. |

Idea by @ccetl
Discontinued one: #3883