Skip to content
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

Support components without component factories #2

Open
whirlibulf opened this issue Jun 14, 2013 · 0 comments
Open

Support components without component factories #2

whirlibulf opened this issue Jun 14, 2013 · 0 comments

Comments

@whirlibulf
Copy link
Owner

game.add("player", "arbitrary component", {"prop": true});

This should work even if there is no registered component factory for "arbitrary component".

This will automatically create a new component type. This makes it easier to not have to create component factories for simple components.

Log warning if component factory isn't found. Add option to turn off warnings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant