Closed jeffcampbellmakesgames closed 4 years ago
This has been resolved and merged to develop as of today. If two or more components for a context have a duplicate name, either due to a default or custom name, a warning will be issued for each instance of duplicates found (one per multiple dupes) and finally an DuplicateComponentNameException
will be thrown to prevent code generation from occurring.
Describe the bug
Two
Components
belonging to the sameContext
with the same short name, but different fully-qualified type names will result in a compilation error post-code generation since theEntity
,Matcher
, andComponentsLookup
member names for both will be the same.To Reproduce
Run code generation.
Compiler errors will occur.
Expected behavior A warning/exception should be issued prior to code-generation and halts the code-gen process.
Screenshots