Table of Contents

Enum SaveFormat

Namespace
KeenEyes.Serialization
Assembly
KeenEyes.Core.dll

Specifies the serialization format used for save files.

public enum SaveFormat

Fields

Binary = 0

Binary format using ToBinary<TSerializer>(WorldSnapshot, TSerializer).

Binary format provides significant benefits:

  • 50-80% smaller than JSON
  • Faster serialization/deserialization
  • No string parsing overhead

This is the recommended format for production applications.

Json = 1

JSON format using ToJson(WorldSnapshot).

JSON format is human-readable and useful for:

  • Debugging save file contents
  • Manual editing of save data
  • Integration with external tools

Note: JSON format results in larger file sizes and slower operations.

Remarks

The format determines how world data is serialized before compression.

  • Binary - Compact binary format, recommended for production
  • Json - Human-readable JSON format, useful for debugging