Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

CodeGenerator doesn't respect C++'s enums' values. #49

Closed
EgorBo opened this issue Aug 2, 2015 · 1 comment
Closed

CodeGenerator doesn't respect C++'s enums' values. #49

EgorBo opened this issue Aug 2, 2015 · 1 comment
Labels

Comments

@EgorBo
Copy link
Member

EgorBo commented Aug 2, 2015

BodyType2D in C# (generated):

public enum BodyType2D
{
    BT_STATIC,
    BT_DYNAMIC, //means 1
    BT_KINEMATIC
}

in C++:

enum BodyType2D
{
    BT_STATIC = b2_staticBody,
    BT_DYNAMIC = b2_dynamicBody, //its value is actually 2
    BT_KINEMATIC = b2_kinematicBody,
};
@EgorBo EgorBo added the bug label Aug 2, 2015
@migueldeicaza
Copy link
Contributor

Fixed.

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

No branches or pull requests

2 participants