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

BaseSavegameInterface

Direct Subclass:

SavegameInterface_V1000

Constructor Summary

Public Constructor
public

constructor(data: any)

Constructs an new interface for the given savegame

Member Summary

Public Members
public

data: *

Method Summary

Public Methods
public

Returns the uncached json schema

public
public

Returns the interfaces version

public

Returns the ingame time in seconds

public

Returns the time of last update

public

Validates the data

Public Constructors

public constructor(data: any) source

Constructs an new interface for the given savegame

Params:

NameTypeAttributeDescription
data any

Public Members

public data: * source

Public Methods

public getSchemaUncached(): object source

Returns the uncached json schema

Return:

object

public getValidator(): * source

Return:

*

public getVersion() source

Returns the interfaces version

public readIngameTimeSeconds(): number source

Returns the ingame time in seconds

Return:

number

public readLastUpdate(): number source

Returns the time of last update

Return:

number

public validate(): boolean source

Validates the data

Return:

boolean