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

Add flags enumeration support to prototypes #4

Open
kennux opened this Issue Nov 5, 2018 · 0 comments

Comments

1 participant
@kennux
Owner

kennux commented Nov 5, 2018

They should be specified in XML like a collection and parsed into the enum field.
Example:

<fieldName>
  <li>enum1</li>
  <li>enum3</li>
</fieldName>
public class TestObj : IPrototype
{
public TestEnum fieldName; // Should be TestEnum.test with xml above
}
[System.Flags]
public enum TestEnum {
enum1 = 1,
enum2 = 2,
enum3 = 4,
test = enum1 | enum3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment