Pico Unreal Platform SDK
Pico_DataStore.h
1// Copyright 2022 Pico Technology Co., Ltd.All rights reserved.
2// This plugin incorporates portions of the Unreal® Engine. Unreal® is a trademark or registered trademark of Epic Games, Inc.In the United States of America and elsewhere.
3// Unreal® Engine, Copyright 1998 – 2022, Epic Games, Inc.All rights reserved.
4
5#pragma once
6
7#include "CoreMinimal.h"
8#include "UObject/NoExportTypes.h"
9#include "PPF_Platform.h"
10#include "Pico_DataStore.generated.h"
11
12DECLARE_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
32 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
33 int32 Contains(FString Key);
34
35 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
36 FString GetKey(int32 Index);
37
38 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
39 int32 GetNumKeys();
40
41 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
42 FString GetValue(FString Key);
43};