Skip to main content

Multi Save Data

Safely stores player/game environment data. Stored game data can be viewed in the console, and past data storage history can also be checked using data tracking.

Call Information​

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

Call 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");
}
});
}
}

Response​

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