MetaSoul

Loading...
Searching...
No Matches
ESFileComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "Components/ActorComponent.h"
4#include "ESFileComponent.generated.h"
5
6UCLASS(ClassGroup = "Utility", meta = (BlueprintSpawnableComponent))
7class EMOSHAPESUBSYSTEM_API UESFileComponent : public UActorComponent
8{
9 GENERATED_UCLASS_BODY()
10 public:
11
13 UFUNCTION(BlueprintPure, Category = FileUtility)
14 FString ProjectContentsDirectory();
15
17 UFUNCTION(BlueprintPure, Category = FileUtility)
18 FString ProjectDirectory();
19
21 UFUNCTION(BlueprintPure, Category = FileUtility)
22 FString ProjectSavedDirectory();
23
25 UFUNCTION(BlueprintPure, Category = FileUtility)
26 FString ExternalSaveDirectory();
27
28 UFUNCTION(BlueprintPure, Category = FileUtility)
29 void SplitFullPath(const FString& InFullPath, FString& OutDirectory, FString& OutFileName);
30
31 UFUNCTION(BlueprintPure, Category = FileUtility)
32 void ProjectRelativePath(const FString& InFullPath, FString& OutProjectRelativePath);
33
35 UFUNCTION(BlueprintCallable, Category = FileUtility)
36 bool SaveBytesToFile(const TArray<uint8>& Bytes, const FString& Directory, const FString& FileName, bool bLogSave = false);
37
39 UFUNCTION(BlueprintCallable, Category = FileUtility)
40 bool ReadBytesFromFile(const FString& Directory, const FString& FileName, TArray<uint8>& OutBytes);
41
42};
UESFileComponent
Definition ESFileComponent.h:8