StructuredSerializationCore

File & Network View source
StructuredSerializationCore

Default integrity key for structured saves. Override this in map configuration with a private, map-specific value. It is intended to deter edited player save codes, not provide cryptographic authentication against somebody who can inspect the map script.

Types

Functions and constants

public constant SERIALIZATION_FORMAT_VERSION = 2

Current tagged serialization wire format.

public constant SERIALIZATION_INTEGRITY_KEY = 0x6D2B79F5

Declaration shown above.

Configurable. Override it in your map’s config package.

public constant SERIALIZATION_REAL_DECIMALS = 6

Decimal places retained for Jass real values. Trailing zeroes are removed on the wire.

Configurable. Override it in your map’s config package.

public function serializationFieldId(string name) returns int

Returns the stable, case-sensitive numeric ID used for a persisted field name.

public function int.readSerializedField(FieldSerializationReader reader, string name) returns int

Type-directed field readers used by the compiler-expanded mapper.

public function real.readSerializedField(FieldSerializationReader reader, string name) returns real
public function string.readSerializedField(FieldSerializationReader reader, string name) returns string
public function boolean.readSerializedField(FieldSerializationReader reader, string name) returns boolean