We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55de3a2 commit c01e958Copy full SHA for c01e958
tutorials/scripting/gdscript/gdscript_basics.rst
@@ -1236,10 +1236,10 @@ a dictionary can also be used with a named enum.
1236
func _ready():
1237
# Access values with Name.KEY, prints '5'
1238
print(State.STATE_JUMP)
1239
- # Use constant dictionary functions
+ # Use dictionary methods:
1240
# prints '["STATE_IDLE", "STATE_JUMP", "STATE_SHOOT"]'
1241
print(State.keys())
1242
- # prints '["STATE_IDLE", "STATE_JUMP", "STATE_SHOOT"]'
+ # prints '{ "STATE_IDLE": 0, "STATE_JUMP": 5, "STATE_SHOOT": 6 }'
1243
print(State)
1244
# prints '[0, 5, 6]'
1245
print(State.values())
0 commit comments