model.go 725 B

123456789101112131415
  1. package types
  2. // TypeDef is a structure for holding C type definitions. This is used so we
  3. // can generate a Go wrapper for all Godot base types.
  4. type TypeDef struct {
  5. Base string // Base will let us know if this is a struct, int, etc.
  6. Comment string // Contains the comment on the line of the struct
  7. GoName string // The Go type name in camelCase
  8. HeaderName string // The header file this type shows up in
  9. Name string // The C type name in snake_case
  10. Properties []TypeDef // Optional C struct fields
  11. IsPointer bool // Usually for properties; defines if it is a pointer type
  12. SimpleType bool // Whether or not the definition is just one line long (e.g. bool, int, etc.)
  13. }