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

Struct Enums convert to/from DisplayName strings #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Olathuss
Copy link
Contributor

UENUMs set in Structs will use the DisplayName string value in LUA during conversion.
They will also properly convert to the right ENUM value from LuaValue strings.

@Olathuss
Copy link
Contributor Author

It should be noted this could break current projects depending on the integer conversion.
But I added this in my current project and wanted to share.

If modifications would be preferred before using, such as adding a bool to the conversion to allow integer or string, feel free to reject and modify as needed; if it's wanted at all.
Or if you'd like me to add changes, let me know.
Thanks!

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

Successfully merging this pull request may close these issues.

1 participant