-
Notifications
You must be signed in to change notification settings - Fork 210
Open
Labels
c: coreComponent: core (mod core_types, object, log, init, ...)Component: core (mod core_types, object, log, init, ...)featureAdds functionality to the libraryAdds functionality to the library
Milestone
Description
Basically, this simple gdscript example can't quite be replicated:
enum Dir { Top = -1, Bottom = 1 }
export(Dir) var dir = Bottom
Since, when defining IntHint::Enum
, you just provide an ordered list of strings, and there's no way to map strings to values. You can still get the result in code with custom setters, but I have a feeling that there's a more direct way to do this by changing the IntHint
struct.
Metadata
Metadata
Assignees
Labels
c: coreComponent: core (mod core_types, object, log, init, ...)Component: core (mod core_types, object, log, init, ...)featureAdds functionality to the libraryAdds functionality to the library