alessandrofama / wwise-godot-integration

Wwise Integration for the Godot Engine
Other
288 stars 14 forks source link

The wwise_ids.gd autogenerated script contains duplicate data #5

Open jorgegarcia opened 4 years ago

jorgegarcia commented 4 years ago

The conversion from C++ Wwise_IDs.h to GDScript wwise_ids.gd creates some duplicate data as part of the class namespace and internal enum. The conversion was implemented this way to support selecting e.g. banks or events from custom Godot nodes in the editor. This could be fixed or refactored to access the members of a class when GDScript supports better reflection mechanisms - at the moment it seems that accessing the members of a class by name or ID isn't supported.

Example:

class STATES:

    class MUSICSTATE:
        const GROUP = 1021618141

        enum _enum {
            GROUP = 1021618141
        }

        class STATE:
            const CALM = 3753286132
            const INTENSE = 4223512837
            const NONE = 748895195

            enum _enum {
                CALM = 3753286132,
                INTENSE = 4223512837,
                NONE = 748895195
            }