PICO Unreal Platform SDK
Pico_DataStore.h
1// Copyright® 2015-2023 PICO Technology Co., Ltd. All rights reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
6#include "UObject/NoExportTypes.h"
7#include "PPF_Platform.h"
8#include "Pico_DataStore.generated.h"
9
10DECLARE_LOG_CATEGORY_EXTERN(DataStore, Log, All);
16UCLASS(BlueprintType)
17class ONLINESUBSYSTEMPICO_API UPico_DataStore : public UObject
18{
19 GENERATED_BODY()
20
21private:
22 UPROPERTY()
23 TMap<FString, FString> DataStoreMap;
24
25 int32 NumKey;
26
27 TArray<FString> KeyArray;
28
29public:
30 void InitParams(ppfDataStore* InppfDataStoreHandle);
31
33 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
34 int32 Contains(FString Key);
35
37 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
38 FString GetKey(int32 Index);
39
41 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
42 int32 GetNumKeys();
43
45 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
46 FString GetValue(FString Key);
47};
UPico_DataStore class.
Definition: Pico_DataStore.h:18