SerializableComponentsDSL
Functions
Link copied to clipboard
fun <T : Component> PolymorphicModuleBuilder<T>.component(subclass: KClass<T>, serializer: KSerializer<T> = subclass.serializerOrNull()
?: error("No serializer found for $subclass while registering serializable component"))
Adds a serializable component and registers it with Geary to allow finding the appropriate class via component serial name.
Link copied to clipboard
Adds a SerializersModule for polymorphic serialization of Components within the ECS.