ExportType

gdext.internal.register.ExportType
See theExportType companion object
trait ExportType[A]

The single seam the @gdexport macro summons. Bundles Variant marshalling with the inspector metadata (hint / hint_string / class_name / usage) for one exportable field type. Per-type logic therefore lives in ordinary givens here (not in the macro); the macro only reads the field type, summons ExportType[A], and wires the get/set lambdas.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def toVariant(value: A, dest: GDExtensionVariantPtr): Unit

Concrete methods

def className: String
def fromVariantAt(src: Long): A

fromVariant from the Variant at address src.

fromVariant from the Variant at address src.

Attributes

def hint: Int
def hintString: String
def holdsReferences: Boolean

True when a decoded value owns engine resources that release frees.

True when a decoded value owns engine resources that release frees.

Attributes

def release(value: A): Unit

Release what a value decoded by fromVariant owns (once it is replaced).

Release what a value decoded by fromVariant owns (once it is replaced).

Attributes

def sceneRootType: Option[String]
def toVariantAt(value: A, dest: Long): Unit

toVariant into the Variant at address dest (see Addr).

toVariant into the Variant at address dest (see Addr).

Attributes

def usage: Int