-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
ClientSDKUpdater.h
60 lines (46 loc) · 1.23 KB
/
ClientSDKUpdater.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "KBECommon.h"
#include "KBEvent.h"
#include "KBEngine.h"
#include "KBEngineArgs.h"
#include "MemoryStream.h"
#include "Messages.h"
#include "Bundle.h"
#include "Engine.h"
#include "KBDebug.h"
#include "Entity.h"
#include "Components/ActorComponent.h"
/**
*
*/
namespace KBEngine
{
class KBENGINEPLUGINS_API ClientSDKUpdater
{
public:
ClientSDKUpdater();
~ClientSDKUpdater();
FString getWarnMsgOfUpdateSDK();
void onImportClientSDK(const UKBEventData* pEventData);
void replaceNewSDK();
void downloadSDKFromServer();
void onDownloadSDKSuccessfully();
void installEvents();
void deregisterEvents();
bool deleteDirectory(FString fileName);
bool createDirectory(FString fileName);
bool directoryExists(FString fileName);
void moveDirectory(FString fromDicPath, FString toDicPath);
void moveToFile(FString fromFileName, FString toFileName);
void copyDirectory(FString fromDicPath, FString toDicPath);
TArray<FString> findFiles(FString directory);
FString sdkPath;
FString sdkTempPath;
FString sdkBakPath;
FString warnUpdateSDK;
int downloadFiles = 0;
MemoryStream* pSdkFileStream = nullptr;
};
}