Click or drag to resize
MachineDataAdd Method
Add a section to the save files with the specified callbacks for retrieving values to be saved and notifying the mod of loaded values.

Namespace: spaar.ModLoader
Assembly: SpaarModLoader (in SpaarModLoader.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static void Add(
	string title,
	MachineDataSaveCallback saveCb,
	MachineDataLoadCallback loadCb
)

Parameters

title
Type: SystemString
Title of the section
saveCb
Type: spaar.ModLoaderMachineDataSaveCallback
Callback for saving
loadCb
Type: spaar.ModLoaderMachineDataLoadCallback
Callback for loading
See Also