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

Unreal Enums seems to create problems #21

Open
datee opened this issue Oct 30, 2022 · 2 comments
Open

Unreal Enums seems to create problems #21

datee opened this issue Oct 30, 2022 · 2 comments

Comments

@datee
Copy link

datee commented Oct 30, 2022

It seems that in general trying to use Unreal Enums in Haxe causes problems.

Test:

var b:EBodyCollisionResponse = EBodyCollisionResponse.BodyCollision_Enabled;
var c:EBlendableLocation = EBlendableLocation.BL_AfterTonemapping;
var e:EndPlayReason:EEndPlayReason = EEndPlayReason.Destroyed;

I get :

C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	36	Error (active)	E1696	cannot open source file "EBlendableLocation.h"	HaxeProject
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	36	Error (active)	E1696	cannot open source file "EBodyCollisionResponse/Type.h"	HaxeProject	
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	39	Error (active)	E1696	cannot open source file "EEndPlayReason/Type.h"	HaxeProject
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	42	Error (active)	E0276	name followed by '::' must be a class or namespace name	HaxeProject
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	88	Error (active)	E0276	name followed by '::' must be a class or namespace name	HaxeProject
C:\dev\Unreal\SampleProject\Source\HaxeCompatibility\HaxeOutput\src\MyActor.cpp	89	Error (active)	E0413	no suitable conversion function from "EEndPlayReason::Type" to "EEndPlayReason::Type" exists	HaxeProject	
@datee datee changed the title Unreal Enums seem to create problems Unreal Enums seems to create problems Oct 30, 2022
@SomeRanDev
Copy link
Owner

This is an issue with Haxe itself. I’ve been trying to find a solution, but also waiting to see if this pull request gets accepted:

HaxeFoundation/haxe#10830

in mean time, next commit should also fix this somewhat by replacing the externs with abstracts.

@datee
Copy link
Author

datee commented Oct 30, 2022

Yes ok i see. Well thats good to know then! Im just looking into testing this and reporting things that i find! 👍

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

No branches or pull requests

2 participants