Header menu logo BaboonAPI

SaverCapability Type

Represents something with the capability to save or load objects.

Instance members

Instance member Description

this.Attach

Full Usage: this.Attach

Parameters:
    name : string - Name to save this object as.
    target : ICustomSaveData<'a> - Serializable object

Modifiers: abstract
Type parameters: 'a

Call to attach an object to the current save.

You should provide a unique name for each attachment. The object's ICustomSaveData.Save and ICustomSaveData.Load functions will be called when the game saves or loads.

name : string

Name to save this object as.

target : ICustomSaveData<'a>

Serializable object

Type something to start searching.