Documentation
¶
Index ¶
Constants ¶
View Source
const (
LanguageName = "Go"
)
Variables ¶
View Source
var ( LanguageAliases = []string{ "gd", "godot", "gdscript", } CCLTypesToGdTypes = map[string]string{ "int": "int", "uint": "int", "int8": "int", "uint8": "int", "int16": "int", "uint16": "int", "int32": "int", "uint32": "int", "int64": "int", "uint64": "int", "float": "float", "float64": "float", "float32": "float", "string": "String", "bool": "bool", "datetime": "int", "bytes": "PackedByteArray", } )
Functions ¶
func GenerateCode ¶
func GenerateCode(options *gen.CodeGenerationOptions) (*gen.CodeGenerationResult, error)
GenerateCode generates GDScript code from the provided CCL source file.
func ToCamelCase ¶
func ToPascalCase ¶
func ToSnakeCase ¶
Types ¶
type CCLField ¶
type CCLField = cclValues.FieldDefinition
CCLField is a type alias for the field definition type from the CCL library.
type CCLModel ¶
type CCLModel = cclValues.ModelDefinition
CCLModel is a type alias for the model definition type from the CCL library.
type GDScriptGenerationContext ¶
type GDScriptGenerationContext struct { Options *gen.CodeGenerationOptions // One builder per model class file ModelClasses map[string]*strings.Builder }
func (*GDScriptGenerationContext) GenerateCode ¶
func (c *GDScriptGenerationContext) GenerateCode() error
func (*GDScriptGenerationContext) GenerateModelClass ¶
func (c *GDScriptGenerationContext) GenerateModelClass(model *CCLModel) error
func (*GDScriptGenerationContext) IsCustomType ¶
func (c *GDScriptGenerationContext) IsCustomType(cclType string) bool
Click to show internal directories.
Click to hide internal directories.