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

Feature: Enum support #17

Open
canhorn opened this issue Aug 2, 2020 · 0 comments
Open

Feature: Enum support #17

canhorn opened this issue Aug 2, 2020 · 0 comments
Labels
feature New feature or request

Comments

@canhorn
Copy link
Owner

canhorn commented Aug 2, 2020

Support TypeScript enum generation.

Since a TypeScript definition file can encode the value for the enum into this should just create a class with the values as static file.

Example TS.d:

export enum Space {
    /** Local (object) space */
    LOCAL = 0,
    /** World space */
    WORLD = 1,
    /** Bone space */
    BONE = 2
}

Generated "Enum":

public static class Space 
{
    public const int LOCAL = 0;
    public const int WORLD = 1;
    public const int BONE = 2;
}
@canhorn canhorn added the feature New feature or request label Aug 2, 2020
@canhorn canhorn mentioned this issue Aug 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant