Home Reference Source
import {SerializerInternal} from 'shapez.io/js/savegame/serializer_internal.js'
public class | source

SerializerInternal

Method Summary

Public Methods
public

deserializeComponents(root: GameRoot, entity: Entity, data: Object<string, any>): string | void

Deserializes components of an entity

public

deserializeEntity(root: GameRoot, payload: Entity)

public
public

Serializes an array of entities

Public Methods

public deserializeComponents(root: GameRoot, entity: Entity, data: Object<string, any>): string | void source

Deserializes components of an entity

Params:

NameTypeAttributeDescription
root GameRoot
entity Entity
data Object<string, any>

Return:

string | void

public deserializeEntity(root: GameRoot, payload: Entity) source

Params:

NameTypeAttributeDescription
root GameRoot
payload Entity

public deserializeEntityArray(root: GameRoot, array: Array<Entity>): string | void source

Params:

NameTypeAttributeDescription
root GameRoot
array Array<Entity>

Return:

string | void

public serializeEntityArray(array: Array<Entity>): * source

Serializes an array of entities

Params:

NameTypeAttributeDescription
array Array<Entity>

Return:

*