isshoni-soft / winry

Isshoni Bootstrapper, uses introspection & code generation to streamline bootstrapping & general development
0 stars 0 forks source link

Bytebuddy transformation improvements #45

Closed Dragovorn closed 1 year ago

Dragovorn commented 2 years ago

Instead of basic wrapping I think now would be the time to do complete class overwriting, this is part of a larger initiative to clean up the BootstrappedElement hierarchy as that portion of the codebase is now the oldest and is pretty outdated.

A few things to keep in mind when designing the new system and structure: Bytebuddy should now be replacing the classes instead of generating a new wrapped class. This will allow us to change parameters on methods, inject logic into constructors, and all in all manage the classes registered to winry in a better way.

End goal of this refactor is to allow instanced event listeners because I believe those could be incredibly useful.

Dragovorn commented 1 year ago

Going to explore instanced event listeners somehow else, this seems unachievable without being in a testing environment I believe.