← Back to Stormify Documentation

Companion

object Companion

Global registry of compile-time entity metadata, populated by EntityRegistrar callbacks.

Functions

Link copied to clipboard
fun <T : Any> find(type: KClass<T>): EntityMeta<T>?

Looks up previously registered metadata for the given type, or returns null.

Link copied to clipboard
fun register(meta: EntityMeta<*>)

Registers entity metadata so it can be looked up later by find.