SimpleFormats

class SimpleFormats(val binaryFormat: Cbor, formats: Map<String, Format>) : Formats

A singleton for accessing different serialization formats with all the registered serializers for Components and more. If anything should be serialized within the ECS, it should be going through one of these serializers.

Will likely be converted into a service eventually.

Constructors

Link copied to clipboard
constructor(binaryFormat: Cbor, formats: Map<String, Format>)

Functions

Link copied to clipboard
open operator override fun get(ext: String): Format?

Gets a registered Format for a file with extension ext.

Properties

Link copied to clipboard
open override val binaryFormat: Cbor

The format to use for encoding binary data (usually not to files)