Closed schosin closed 4 years ago
Awesome! Got to think a sec about the Strict clause,
Awesome! Got to think a sec about the Strict clause,
As in, maybe it should be default.
My thought process was having it enabled during development and disabled for production, that's why I went with the save route.
The strict mode currently is in another branch. I add it to this PR if you prefer that, the title just wouldn't match currently.
Submit it separately is fine :)
Fixes a ClassCastException when annotated classes don't extend Component. I also added a couple tests. Haven't used JUnit 4 in a long time though.
Got another feature in my fork, adding a strict mode for the SingletonPlugin, which throws an exception when an entity enters the world with a singleton component added to it. I can create a PR if you're interested.