Documentation
¶
Index ¶
- Variables
- type Atlas
- type AuthorInfo
- type Class
- type Commit
- type CompletionInfo
- type Configuration
- type Conn
- type Connection
- type Copyright
- type Date
- type DateOnly
- type DiffFile
- type DiffHunk
- type DiffLine
- type DonorInfo
- type Entry
- type Enum
- type FileDialogOption
- type GlobalClass
- type IceServer
- type JoyInfo
- type LocalInterface
- type MemoryInfo
- type Method
- type Metrics
- type Notification
- type OnTheClock
- type Options
- type OwnershipSemantics
- type Part
- type PhysicsDirectSpaceState2D_Intersection
- type PhysicsDirectSpaceState2D_RestInfo
- type PhysicsDirectSpaceState3D_Intersection
- type PhysicsDirectSpaceState3D_RestInfo
- type Pipe
- type PropertyInfo
- type RangeConfig
- type Request
- type Response
- type ResponseError
- type Signal
- type SignalConnection
- type SignalInfo
- type Specification
- type StatusFile
- type Structure
- type Surface
- type TextToSpeechVoice
- type VersionInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var Abstracted = map[string]bool{ "RenderingDevice": true, }
View Source
var Callables = map[string][]string{}/* 121 elements not displayed */
View Source
var ClassMethodOwnership = map[string]map[string]map[string]OwnershipSemantics{}/* 119 elements not displayed */
View Source
var Resources = map[string]reflect.Type{}/* 1628 elements not displayed */
View Source
var Structables = map[string]reflect.Type{}/* 148 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type AuthorInfo ¶
type Class ¶
type Class struct { Name string `json:"name"` Rename string `json:"rename,omitempty"` Package string `json:"package,omitempty"` IsEnum bool `json:"is_enum"` Description string `json:"description"` IsRefcounted bool `json:"is_refcounted"` IsInstantiable bool `json:"is_instantiable"` IsSingleton bool IsKeyed bool `json:"is_keyed"` // builtin class Operators []struct { Name string `json:"name"` RightType string `json:"right_type,omitempty"` ReturnType string `json:"return_type"` } `json:"operators"` // builtin class Constructors []struct { Index int `json:"index"` Arguments []struct { Name string `json:"name"` Type string `json:"type"` Meta string `json:"meta"` } `json:"arguments,omitempty"` } `json:"constructors"` // builtin class HasDestructor bool `json:"has_destructor"` // builtin class IndexingReturnType string `json:"indexing_return_type,omitempty"` // builtin class Inherits string `json:"inherits,omitempty"` APIType string `json:"api_type"` Enums []Enum `json:"enums,omitempty"` Methods []Method `json:"methods,omitempty"` Members []struct { Name string `json:"name"` Type string `json:"type"` } `json:"members,omitempty"` // builtin class Signals []Signal `json:"signals,omitempty"` Properties []struct { Type string `json:"type"` Name string `json:"name"` Description string `json:"description"` Setter string `json:"setter"` Getter string `json:"getter"` Index *int `json:"index"` } `json:"properties,omitempty"` Constants []struct { Name string `json:"name"` Type string `json:"type"` // builtin class Value any `json:"value"` } `json:"constants,omitempty"` }
type CompletionInfo ¶
type Configuration ¶
type Configuration struct {
IceServers []IceServer `gd:"ice_servers"`
}
type Connection ¶
type DonorInfo ¶
type DonorInfo struct { PlatinumSponsors []string `gd:"platinum_sponsors"` GoldSponsors []string `gd:"gold_sponsors"` SilverSponsors []string `gd:"silver_sponsors"` BronzeSponsors []string `gd:"bronze_sponsors"` MiniSponsors []string `gd:"mini_sponsors"` GoldDonors []string `gd:"gold_donors"` SilverDonors []string `gd:"silver_donors"` BronzeDonors []string `gd:"bronze_donors"` }
type FileDialogOption ¶
type GlobalClass ¶
type LocalInterface ¶
type MemoryInfo ¶
type Method ¶
type Method struct { Name string `json:"name"` Description string `json:"description"` IsConst bool `json:"is_const"` IsVararg bool `json:"is_vararg"` IsStatic bool `json:"is_static"` IsVirtual bool `json:"is_virtual"` Hash int64 `json:"hash"` ReturnType string `json:"return_type"` // builtin class ReturnValue struct { Type string `json:"type"` Meta string `json:"meta"` } `json:"return_value,omitempty"` Arguments []struct { Name string `json:"name"` Type string `json:"type"` Meta string `json:"meta"` DefaultValue *string `json:"default_value"` } `json:"arguments,omitempty"` }
type Notification ¶
type OnTheClock ¶
type OwnershipSemantics ¶
type OwnershipSemantics int
OwnershipSemantics attempts to capture a proposal and pragmatic categorization around the ownership semantics for non-RefCounted godot objects.
const ( // RefCountedManagement is the default ownership semantics for objects that // extend the RefCounted class. RefCountedManagement OwnershipSemantics = iota // OwnershipTransferred means that the receiver of the value is responsible // for freeing the memory associated with the value. After transferring the // ownership of a value this way, no direct references may be kept by the prior // owner, although they may keep copies of the InstanceID and use it to look // up the object in the future. OwnershipTransferred // ReversesTheOwnership applies to function arguments and means if (and only // if) the class is known to be the owner of the object, or is known to bind // the lifetime of this value, once the function returns, the caller will own // the object instead and is no longer under an obligation to keep it alive. // In such cases, the caller becomes responsible for freeing the object. ReversesTheOwnership // IsTemporaryReference only applies to function arguments and means that // the function borrows the argument (for the lifetime of the call) and does // not take ownership of it. The function may store the InstanceID of an // argument, in order to look it up in future. IsTemporaryReference // MustAssertInstanceID means that the receiver must always assert that // the instance ID is valid before using the object. The object may be // freed at any time. MustAssertInstanceID // LifetimeBoundToClass when applied to function arguments, means that the // receiver may keep a reference to the object and the caller must keep // it alive for as long as the class is alive. For return values, they // are only valid as long as the class they are returned from is alive, // the caller may not free the object. LifetimeBoundToClass )
type PhysicsDirectSpaceState3D_Intersection ¶
type PhysicsDirectSpaceState3D_Intersection struct { Collider any `gd:"collider" type:"Object.Instance"` ColliderID int64 `gd:"collider_id" type:"Object.ID"` Normal Vector3.XYZ `gd:"normal"` Position Vector3.XYZ `gd:"position"` FaceIndex int `gd:"face_index"` RID RID.Any `gd:"rid"` Shape int `gd:"shape"` }
type PropertyInfo ¶
type RangeConfig ¶
type ResponseError ¶
type SignalConnection ¶
type SignalInfo ¶
type SignalInfo struct { Name string `gd:"name"` Flags int `gd:"flags"` ID int `gd:"id"` DefaultArgs []any `gd:"default_args"` Args []PropertyInfo `gd:"args"` }
type Specification ¶
type Specification struct { Header struct { VersionMajor int `json:"version_major"` VersionMinor int `json:"version_minor"` VersionPatch int `json:"version_patch"` VersionStatus string `json:"version_status"` VersionBuild string `json:"version_build"` VersionFullName string `json:"version_full_name"` } `json:"header"` BuiltinClassSizes []struct { BuildConfiguration string `json:"build_configuration"` Sizes []struct { Name string `json:"name"` Size int `json:"size"` } `json:"sizes"` } `json:"builtin_class_sizes"` BuiltinClassMemberOffsets []struct { BuildConfiguration string `json:"build_configuration"` Classes []struct { Name string `json:"name"` Members []struct { Member string `json:"member"` Offset int `json:"offset"` } `json:"members"` } `json:"classes"` } `json:"builtin_class_member_offsets"` GlobalConstants []interface{} `json:"global_constants"` GlobalEnums []Enum `json:"global_enums"` UtilityFunctions []struct { Name string `json:"name"` ReturnType string `json:"return_type,omitempty"` Category string `json:"category"` IsVararg bool `json:"is_vararg"` Hash int `json:"hash"` Arguments []struct { Name string `json:"name"` Type string `json:"type"` Meta string `json:"meta"` } `json:"arguments,omitempty"` } `json:"utility_functions"` BuiltinClasses []Class `json:"builtin_classes"` Classes []Class `json:"classes"` Singletons []struct { Name string `json:"name"` Type string `json:"type"` } `json:"singletons"` NativeStructures []struct { Name string `json:"name"` Format string `json:"format"` } `json:"native_structures"` }
Specification of the Godot Extension API. Created with https://mholt.github.io/json-to-go/
func LoadSpecification ¶
func LoadSpecification() (*Specification, error)
LoadSpecification, either from a local file or by downloading it from the Godot Github repository.
type StatusFile ¶
type TextToSpeechVoice ¶
Click to show internal directories.
Click to hide internal directories.