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

Docs don't indicate that methods can use types directly #25

Open
fritzy opened this issue Sep 28, 2020 · 2 comments
Open

Docs don't indicate that methods can use types directly #25

fritzy opened this issue Sep 28, 2020 · 2 comments
Labels
good first issue Good for newcomers

Comments

@fritzy
Copy link
Owner

fritzy commented Sep 28, 2020

Documentation needs to be updated to show that methods that type a type-name string can also take the type constructor itself, directly.

@fritzy fritzy added the good first issue Good for newcomers label Oct 7, 2020
@vmwxiong
Copy link
Contributor

vmwxiong commented Oct 9, 2020

Is this true of createEntity?

Trying to figure out a way to call createEntity and pass in a list of components types without using strings anywhere.

@fritzy
Copy link
Owner Author

fritzy commented Oct 10, 2020

Yeah, that's true... it expects a definition object. I meant that anytime you use a Type, where in that case you're mentioning an instance. You can use anything other than strings as object keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants