PrefabByReferenceSerializer

class PrefabByReferenceSerializer : KSerializer<Entity>

Deprecated

This will not work properly until ktx.serialization fully supports inline classes

Allows us to serialize entity types to a reference to ones actually registered in the system. This is used to load the static entity type when we decode components from an in-game entity.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Entity
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: Entity)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor