ScriptExtension

package
v0.0.0-...-d9f4d4e Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package ScriptExtension provides methods for working with ScriptExtension object instances.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advanced

type Advanced = class

Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.

type Any

type Any interface {
	gd.IsClass
	AsScriptExtension() Instance
}

type Implementation

type Implementation = implementation

Implementation implements Interface with empty methods.

type Instance

type Instance [1]gdclass.ScriptExtension
var Nil Instance

Nil is a nil/null instance of the class. Equivalent to the zero value.

func New

func New() Instance

func (Instance) AsObject

func (self Instance) AsObject() [1]gd.Object

func (Instance) AsRefCounted

func (self Instance) AsRefCounted() [1]gd.RefCounted

func (Instance) AsResource

func (self Instance) AsResource() Resource.Instance

func (Instance) AsScript

func (self Instance) AsScript() Script.Instance

func (Instance) AsScriptExtension

func (self Instance) AsScriptExtension() Instance

func (*Instance) UnsafePointer

func (self *Instance) UnsafePointer() unsafe.Pointer

func (Instance) Virtual

func (self Instance) Virtual(name string) reflect.Value

type Interface

type Interface interface {
	EditorCanReloadFromFile() bool
	PlaceholderErased(placeholder unsafe.Pointer)
	CanInstantiate() bool
	GetBaseScript() [1]gdclass.Script
	GetGlobalName() string
	InheritsScript(script [1]gdclass.Script) bool
	GetInstanceBaseType() string
	InstanceCreate(for_object Object.Instance) unsafe.Pointer
	PlaceholderInstanceCreate(for_object Object.Instance) unsafe.Pointer
	InstanceHas(obj Object.Instance) bool
	HasSourceCode() bool
	GetSourceCode() string
	SetSourceCode(code string)
	Reload(keep_state bool) error
	GetDocumentation() []map[any]any
	GetClassIconPath() string
	HasMethod(method string) bool
	HasStaticMethod(method string) bool
	//Return the expected argument count for the given [param method], or [code]null[/code] if it can't be determined (which will then fall back to the default behavior).
	GetScriptMethodArgumentCount(method string) any
	GetMethodInfo(method string) map[any]any
	IsTool() bool
	IsValid() bool
	//Returns [code]true[/code] if the script is an abstract script. An abstract script does not have a constructor and cannot be instantiated.
	IsAbstract() bool
	GetLanguage() [1]gdclass.ScriptLanguage
	HasScriptSignal(signal string) bool
	GetScriptSignalList() []map[any]any
	HasPropertyDefaultValue(property string) bool
	GetPropertyDefaultValue(property string) any
	UpdateExports()
	GetScriptMethodList() []map[any]any
	GetScriptPropertyList() []map[any]any
	GetMemberLine(member string) int
	GetConstants() map[any]any
	GetMembers() []string
	IsPlaceholderFallbackEnabled() bool
	GetRpcConfig() any
}

Jump to

Keyboard shortcuts

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