GDTypesafe is a class generator for Godot which helps work around GDScript's insufficient typing system. Specifically, it
- Allows explicitely specifying that a variable can be null using nullables
- Provides typesafe arrays and dictionaries
- Gets around the cyclical dependency problems using proxies
The entire code is contained within the gdtypesafe.gd file. Copy just the file, or clone this repository, into your project.
The examples/sample.gd demonstrates how to use GDTypesafe to generate various classes. This script can be run directly from the editor through File > Run. It will generate a bunch of files inside the examples/gen directory.
Licensed under the MIT License.