DrifterModule

@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class DrifterModule(val name: String = "", val receiver: String = "", val methods: KClass<*> = Unit::class)

Marks a class as a Drifter module, defining its functionality and integration points.

This annotation associates a class with a specific Unity GameObject and exposes its methods for communication and data exchange with the Unity environment.

Properties

Link copied to clipboard
val methods: KClass<*>

The Kotlin class representing the interface containing exposed methods. Defaults to Unit if no methods are explicitly defined.

Link copied to clipboard

The name of the module, used for identification and logging.

Link copied to clipboard

The name of the Unity GameObject this module interacts with.