Closed PopSlime closed 1 year ago
I removed the check for reserved keywords temporarily, because I had issues with CodeDom. I will re-add in next version.
for reference, here's the commit to blame: https://github.com/sschmid/Entitas/commit/bf344c8182b17464785e27395c50885653bc3b95
Fixed in Entitas 1.14.1 https://github.com/sschmid/Entitas/releases/tag/1.14.1
Describe the bug
When language keywords like
Event
are used as the name of a component, the code generator fails to handle the component name correctly.To Reproduce
Generate code for the following component.
Generated code:
Compilation error:
Potential Solution
Prefix the component name with a verbatim identifier
@
if it is a language keyword. For example,event
becomes@event
.Entitas Version