godot-extended-libraries / godot-next

Godot Node Extensions - Basic Node Extensions for Godot Engine
MIT License
957 stars 61 forks source link

Change all scripts to conform to the GDScript style guide #64

Closed aaronfranke closed 4 years ago

aaronfranke commented 4 years ago

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'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.

willnationsdev commented 4 years ago

Thanks!