Skip to content

Add ReflectPlugin and register primitive types#284

Merged
waynemwashuma merged 4 commits into
wimaengine:devfrom
waynemwashuma:reflect-plugin
Mar 13, 2026
Merged

Add ReflectPlugin and register primitive types#284
waynemwashuma merged 4 commits into
wimaengine:devfrom
waynemwashuma:reflect-plugin

Conversation

@waynemwashuma
Copy link
Copy Markdown
Collaborator

@waynemwashuma waynemwashuma commented Mar 13, 2026

Objective

Create a ReflectPlugin that automatically registers primitive type information with the application, making the type reflection immediately available upon app initialization.

Solution

Implemented a new plugin integration for the reflect module
Integrated into DefaultPlugin

Showcase

const app = new App()

app.registerPligin(new ReflectPlugin())
const typeRegistry = app.getWorld().getResource(TypeRegistry)
const numberInfo = typeRegistry.get(Number)

Migration guide

No breaking changes.

Checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • [ ] I have added tests to cover my changes.

@waynemwashuma waynemwashuma self-assigned this Mar 13, 2026
@waynemwashuma waynemwashuma added the type:enhancement New feature or request label Mar 13, 2026
@waynemwashuma waynemwashuma merged commit 0ac50b1 into wimaengine:dev Mar 13, 2026
7 checks passed
@waynemwashuma waynemwashuma deleted the reflect-plugin branch March 13, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant