Skip to content

Serialization

copyIsaacAPIClass<T>(isaacAPIClass): T

Defined in: packages/isaacscript-common/src/functions/serialization.ts:21

Helper function to generically copy an Isaac API class without knowing what specific type of class it is. (This is used by the save data manager.)

For the list of supported classes, see the CopyableIsaacAPIClassType enum.

T extends CopyableIsaacAPIClass

T

T


deserializeIsaacAPIClass<SerializedT>(serializedIsaacAPIClass): IsaacAPIClassTypeToType[SerializedT["__kind"]]

Defined in: packages/isaacscript-common/src/functions/serialization.ts:66

Helper function to generically deserialize an Isaac API class without knowing what specific type of class it is. (This is used by the save data manager when reading data from the “save#.dat” file.)

For the list of supported classes, see the CopyableIsaacAPIClassType enum.

SerializedT extends SerializedIsaacAPIClass

SerializedT

IsaacAPIClassTypeToType[SerializedT["__kind"]]


isCopyableIsaacAPIClass(object): object is CopyableIsaacAPIClass

Defined in: packages/isaacscript-common/src/functions/serialization.ts:110

Helper function to generically check if a given object is a copyable Isaac API class. (This is used by the save data manager when determining what is safe to copy.)

For the list of supported classes, see the CopyableIsaacAPIClassType enum.

unknown

object is CopyableIsaacAPIClass


isSerializedIsaacAPIClass(object): object is SerializedIsaacAPIClass

Defined in: packages/isaacscript-common/src/functions/serialization.ts:124

Helper function to generically check if a given Lua table is a serialized Isaac API class. (This is used by the save data manager when reading data from the “save#.dat” file.)

For the list of supported classes, see the CopyableIsaacAPIClassType enum.

unknown

object is SerializedIsaacAPIClass


serializeIsaacAPIClass<T>(isaacAPIClass): IsaacAPIClassTypeToSerializedType[T["__kind"]]

Defined in: packages/isaacscript-common/src/functions/serialization.ts:142

Helper function to generically serialize an Isaac API class without knowing what specific type of class it is. (This is used by the save data manager when writing data to the “save#.dat” file.)

For the list of supported classes, see the CopyableIsaacAPIClassType enum.

T extends CopyableIsaacAPIClass

T

IsaacAPIClassTypeToSerializedType[T["__kind"]]