types

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package types is responsible for parsing the Godot headers for type definitions and generating Go wrappers around that structure.

Package types is a package that parses the GDNative headers for type definitions to create wrapper structures for Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(packagePath string)

Generate will generate Go wrappers for all Godot base types

Types

type ConstructorIndex

type ConstructorIndex map[string][]gdnativeapijson.GoMethod

ConstructorIndex indexes by gdnativeapijson.GoTypeDef.CName

type GlobalMethods

type GlobalMethods []gdnativeapijson.GoMethod

GlobalMethods contains the list of methods not associated with a GoTypeDef

type GoTypeDefIndex

type GoTypeDefIndex map[string]map[string]gdnativeapijson.GoTypeDef

GoTypeDefIndex indexes by C header file name and then by C typedef name

type MethodIndex

type MethodIndex map[string][]gdnativeapijson.GoMethod

MethodIndex indexes by gdnativeapijson.GoTypeDef.CName

type View

type View struct {
	TemplateName string
	TypeDefs     []gdnativeapijson.GoTypeDef
	Globals      []gdnativeapijson.GoMethod
}

View is a structure that holds the api struct, so it can be used inside our template.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL