GDextension CPP Constants Question

Godot Version

4.6.1

Question

Not sure this is really a question with an answer, or just opinions. I’m working on something, and finally got around to working with constants. I noticed while registering the constants



ClassDB::bind_integer_constant(“Summator”,“”,“Okay”,DOING_OKAY_AMOUNT);

That the second parameter, or argument, if that’s you preference, is for the enumerator name. I assume this is called by the BIND_ENUM_CONSTANT macro when it registers enumerator constants.

Anyway in this case there are 3 related integer constants, would it be common practice to group them into enum group ? If so wouldn’t it just be best to make most constant integers enumerator values, as it greatly simplifies registration?