The ##### markers have been removed, since the sorting order is now standardized, it should be easy to find anything for users familiar with the style guide.
There are a few things missing from the style guide, such as how to sort static functions and in-file classes. For classes, I moved them to the top; for static functions, I left them as-is.
I also fixed some issues with methods conflicting with Godot's build-in method names. variant.gd's to_string is now var_to_string, and csv_file.gd's load and save are now load_file and save_file. I also changed physics_layers.gd's 2D/3D distinction to a boolean. That should be all of the public API changes in this PR.
This PR changes the scripts to conform to the GDScript style guide. Some notes:
The
#####
markers have been removed, since the sorting order is now standardized, it should be easy to find anything for users familiar with the style guide.There are a few things missing from the style guide, such as how to sort static functions and in-file classes. For classes, I moved them to the top; for static functions, I left them as-is.
I also fixed some issues with methods conflicting with Godot's build-in method names.
variant.gd
'sto_string
is nowvar_to_string
, andcsv_file.gd
'sload
andsave
are nowload_file
andsave_file
. I also changedphysics_layers.gd
's 2D/3D distinction to a boolean. That should be all of the public API changes in this PR.