Skip to content

Commit

Permalink
Added uses to order of things in GDScript files
Browse files Browse the repository at this point in the history
  • Loading branch information
Meorge committed Feb 6, 2025
1 parent 00d8ad7 commit ea67097
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions tutorials/scripting/gdscript/gdscript_styleguide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -775,28 +775,29 @@ We suggest to organize GDScript code this way:
01. @tool, @icon, @static_unload
02. class_name
03. extends
04. ## doc comment

05. signals
06. enums
07. constants
08. static variables
09. @export variables
10. remaining regular variables
11. @onready variables

12. _static_init()
13. remaining static methods
14. overridden built-in virtual methods:
04. uses
05. ## doc comment

06. signals
07. enums
08. constants
09. static variables
10. @export variables
11. remaining regular variables
12. @onready variables

13. _static_init()
14. remaining static methods
15. overridden built-in virtual methods:
1. _init()
2. _enter_tree()
3. _ready()
4. _process()
5. _physics_process()
6. remaining virtual methods
15. overridden custom methods
16. remaining methods
17. subclasses
16. overridden custom methods
17. remaining methods
18. subclasses

And put the class methods and variables in the following order depending on their access modifiers:

Expand Down

0 comments on commit ea67097

Please sign in to comment.