Skip to main content

Multi-Save Data

Safely stores player/game environment information.
Stored game data can be viewed in the console, and past data storage history can also be tracked and reviewed.

Call Information

public void MultiSave (MultiSaveParam storageItems, PlayNANOODelegate callback) {}

Call Information Details

ParameterDescriptionType
storageItemsPlayer data save listMultiSaveParam
callbackCommunication resultPlayNANOODelegate

Source Code

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

PlayNANOO.Storage.MultiSaveParam multiSaveParam = new PlayNANOO.Storage.MultiSaveParam();
multiSaveParam.Items.Add(new PlayNANOO.Storage.MultiSaveParamValue { StorageKey = "Storage1", StorageValue = "StorageValue1", IsPrivate = true });
multiSaveParam.Items.Add(new PlayNANOO.Storage.MultiSaveParamValue { StorageKey = "Storage2", StorageValue = "StorageValue2", IsPrivate = false });

plugin.Storage.MultiSave(multiSaveParam, (status, error, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log("Success");
}
else
{
Debug.Log("Fail");
}
});
}
}

Communication Result

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "String"
}