ClassRegistration
gdext.internal.register.ClassRegistration
object ClassRegistration
Registers a user-defined Scala class with Godot's ClassDB.
This is the explicit builder substrate the macro layer (and hand-written code) targets. It fills a GDExtensionClassCreationInfo4 with static trampolines — the GDExtension callbacks cannot capture closures — that defer all per-class/per-instance behaviour to ClassRegistry via integer tokens (see Tokens).
Lifecycle wired here:
- create: construct the parent engine object, build the Scala instance, link them with
object_set_instance, and return the engine handle. - free: drop the Scala instance from the registry.
- get_virtual: report which engine virtuals (
_ready/_process/_physics_process) the subclass overrides, handing Godot the matching static dispatcher.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ClassRegistration.type
Members list
In this article