Skip to content

Serialization

Definition

Namespace: Brine2D.ECS

Classes
EntitySerializer Serializes and deserializes entities to/from JSON. Uses System.Text.Json with support for custom converters. Works automatically with ANY component type - no hardcoding needed!
EntitySnapshot Serializable snapshot of an entity's state.
Vector2Converter JSON converter for Vector2.
WorldSnapshot Serializable snapshot of the entire world.