Header menu logo BaboonAPI

ICustomSaveData<'a> Type

Implement if you want your class to be able to store persistent data.

The save & load methods should return and accept a class marked with SerializableAttribute.

Instance members

Instance member Description

this.Convert

Full Usage: this.Convert

Parameters:
Returns: 'a
Modifiers: abstract

Used to convert the incoming JSON back into your type.

You should usually implement this function as follows:

member this.Convert o = o.ToObject()

o : JObject
Returns: 'a

this.Load

Full Usage: this.Load

Parameters:
    data : 'a

Modifiers: abstract

Called when saved data is loaded from disk. You can use this to restore your class's state.

data : 'a

this.Save

Full Usage: this.Save

Returns: 'a
Modifiers: abstract

Called to save this object to disk. The returned object should be serializable.

Returns: 'a

Type something to start searching.