PICO Unreal Platform SDK
Pico_DataStore.h
1/*******************************************************************************
2Copyright © 2015-2022 PICO Technology Co., Ltd.All rights reserved.
3
4NOTICE:All information contained herein is, and remains the property of
5PICO Technology Co., Ltd. The intellectual and technical concepts
6contained herein are proprietary to PICO Technology Co., Ltd. and may be
7covered by patents, patents in process, and are protected by trade secret or
8copyright law. Dissemination of this information or reproduction of this
9material is strictly forbidden unless prior written permission is obtained from
10PICO Technology Co., Ltd.
11*******************************************************************************/
12// 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.
13// Unreal® Engine, Copyright 1998 – 2022, Epic Games, Inc.All rights reserved.
14
15#pragma once
16
17#include "CoreMinimal.h"
18#include "UObject/NoExportTypes.h"
19#include "PPF_Platform.h"
20#include "Pico_DataStore.generated.h"
21
22DECLARE_LOG_CATEGORY_EXTERN(DataStore, Log, All);
28UCLASS(BlueprintType)
29class ONLINESUBSYSTEMPICO_API UPico_DataStore : public UObject
30{
31 GENERATED_BODY()
32
33private:
34 UPROPERTY()
35 TMap<FString, FString> DataStoreMap;
36
37 int32 NumKey;
38
39 TArray<FString> KeyArray;
40
41public:
42 void InitParams(ppfDataStore* InppfDataStoreHandle);
43
45 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
46 int32 Contains(FString Key);
47
49 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
50 FString GetKey(int32 Index);
51
53 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
54 int32 GetNumKeys();
55
57 UFUNCTION(BlueprintPure, Category = "Pico Platform|Misc|Data Store")
58 FString GetValue(FString Key);
59};
UPico_DataStore class.
Definition: Pico_DataStore.h:30