TextSerializer.md

March 19, 2022 · View on GitHub

DefaultEcs

DefaultEcs.Serialization

TextSerializer Class

Provides a basic implementation of the ISerializer interface using a text readable format.

public sealed class TextSerializer :
DefaultEcs.Serialization.ISerializer

Inheritance System.Object 🡒 TextSerializer

Implements ISerializer

Constructors
TextSerializer()Initializes a new instance of the TextSerializer class.
TextSerializer(TextSerializationContext)Initializes a new instance of the TextSerializer class.
TextSerializer(Predicate<Type>)Initializes a new instance of the TextSerializer class.
TextSerializer(Predicate<Type>, TextSerializationContext)Initializes a new instance of the TextSerializer class.
Methods
Deserialize(Stream)Deserializes a World instance from the given System.IO.Stream.
Deserialize(Stream, World)Deserializes Entity instances with their components from the given System.IO.Stream into the given World.
Read<T>(Stream)Read an object of type T from the given stream.
Read<T>(Stream, TextSerializationContext)Read an object of type T from the given stream.
Serialize(Stream, World)Serializes the given World into the provided System.IO.Stream.
Serialize(Stream, IEnumerable<Entity>)Serializes the given Entity instances with their components into the provided System.IO.Stream.
Write<T>(Stream, T)Writes an object of type T on the given stream.
Write<T>(Stream, T, TextSerializationContext)Writes an object of type T on the given stream.