Skip to content
This repository has been archived by the owner on Mar 15, 2023. It is now read-only.

xaltaq/GDTypesafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDTypesafe

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

Usage

The entire code is contained within the gdtypesafe.gd file. Copy just the file, or clone this repository, into your project.

Examples

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.

License

Licensed under the MIT License.