Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Add flags enumeration support to prototypes #4

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

Add flags enumeration support to prototypes #4

kennux opened this issue Nov 5, 2018 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@kennux
Copy link
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
}
@kennux kennux added enhancement New feature or request help wanted Extra attention is needed labels Nov 5, 2018
@kennux kennux added the good first issue Good for newcomers label Dec 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant