Skip to content

Serialization

Brine2D

Brine2D.ECS.Serialization Namespace

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.