register<T extends ZorphyEntityBase<Object?>> method

void register<T extends ZorphyEntityBase<Object?>>(
  1. ZorphyEntityDescriptor<T> descriptor
)

Registers descriptor for entity type T on the bound registry.

Registration is idempotent for the identical descriptor (the registry's own duplicate policy), so a rebuilt agent graph wiring the same generated static const descriptor twice is harmless.

Implementation

void register<T extends ZorphyEntityBase<Object?>>(
  ZorphyEntityDescriptor<T> descriptor,
) {
  registry.register<T>(descriptor);
}