You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related to #1584, although the introduction of typed dictionaries makes this much more complicated.
TypedArray and TypedDictionary should be able to take enum types that have been registered with VARIANT_ENUM_CAST as the element or key or value type, treating it as an integer with whatever metadata is needed to make the editor show the correct type name in the brackets.
Godot version
4.4.dev7.official.46c8f8c5c
godot-cpp version
befe3ee
System information
Debian Trixie, i7-1360P
Issue description
Related to #1584, although the introduction of typed dictionaries makes this much more complicated.
TypedArray
andTypedDictionary
should be able to take enum types that have been registered withVARIANT_ENUM_CAST
as the element or key or value type, treating it as an integer with whatever metadata is needed to make the editor show the correct type name in the brackets.Steps to reproduce
Contrived toy example:
Actual project where I am using typed arrays and dictionaries of enum types: https://github.com/BenLubar/godot4-spy-cards-online
(In the actual project,
src/dry.h
contains a lot of helper macros.)Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: