mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
GDScript: Allow enum values to be set to constant expressions
Also allow them to access previous values wihout referencing the enum.
This commit is contained in:
parent
99d4ea8c79
commit
35176247af
4 changed files with 96 additions and 16 deletions
|
|
@ -405,7 +405,10 @@ public:
|
|||
struct EnumNode : public Node {
|
||||
struct Value {
|
||||
IdentifierNode *identifier = nullptr;
|
||||
LiteralNode *custom_value = nullptr;
|
||||
ExpressionNode *custom_value = nullptr;
|
||||
EnumNode *parent_enum = nullptr;
|
||||
int index = -1;
|
||||
bool resolved = false;
|
||||
int value = 0;
|
||||
int line = 0;
|
||||
int leftmost_column = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue