MethodRegistration
Registers Scala methods on a registered class so they are callable from GDScript / the engine (the #[func] analogue), and provides the getter/ setter methods that property (@export) registration links together.
Dispatch goes through the Variant call_func path: the trampoline finds the instance and the method dispatcher by their tokens, then invokes the dispatcher with the raw argument Variants and the return Variant slot. A dispatcher reads its args via the Phase 1 FromVariant seam and writes its result via ToVariant. All argument/return marshalling reuses that seam, so any builtin-convertible type is supported.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
MethodRegistration.type
Members list
Type members
Classlikes
A registered method's runtime dispatch over raw Variant storage. The argument array and return slot arrive as Long addresses (see gdext.internal.Addr), so a call boxes nothing.
A registered method's runtime dispatch over raw Variant storage. The argument array and return slot arrive as Long addresses (see gdext.internal.Addr), so a call boxes nothing.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
The address of the i-th argument Variant.
The address of the i-th argument Variant.
Attributes
Getter dispatch: primitives are written straight into the return Variant (no boxing); any other type goes through its ToVariant.
Getter dispatch: primitives are written straight into the return Variant (no boxing); any other type goes through its ToVariant.
Attributes
A no-argument, void "action" method — e.g. a signal handler bound via a gdext.builtin.Callable (Callable(object, name)). When the engine invokes it, action runs with the live Scala instance.
A no-argument, void "action" method — e.g. a signal handler bound via a gdext.builtin.Callable (Callable(object, name)). When the engine invokes it, action runs with the live Scala instance.
Attributes
Getter backed by an ExportType (covers object/enum/dict exports).
Setter backed by an ExportType.
A getter: () => A, exposed as a no-arg method returning A.
A getter: () => A, exposed as a no-arg method returning A.
Attributes
A setter: A => Unit, exposed as a 1-arg void method.
A setter: A => Unit, exposed as a 1-arg void method.
Attributes
Setter dispatch: the counterpart of getterDispatch for argument 0.