본문으로 건너뛰기

데이터 멀티 저장

플레이어/게임 환경 정보의 데이터를 안전하게 저장 합니다.
저장 된 게임 데이터는 콘솔에서 조회 할 수 있으며 데이터 추적을 활용하여 과거의 데이터 저장 내역도 확인 가능 합니다.

호출 정보

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

호출 상세 정보

파라미터설명타입
storageItems플레이어 데이터 저장 목록MultiSaveParam
callback통신 결과PlayNANOODelegate

소스 코드

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

통신 결과

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