This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
96 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,2 @@ | ||
[FilterPlugin] | ||
; This section lists additional files which will be packaged along with your plugin. Paths should be listed relative to the root plugin directory, and | ||
; may include "...", "*", and "?" wildcards to match directories, files, and individual characters respectively. | ||
; | ||
; Examples: | ||
; /README.txt | ||
; /Extras/... | ||
; /Binaries/ThirdParty/*.dll | ||
Config/DefaultHttpGPT.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Author: Lucas Vilas-Boas | ||
// Year: 2023 | ||
// Repo: https://github.com/lucoiso/UEHttpGPT | ||
|
||
#pragma once | ||
|
||
#include <CoreMinimal.h> | ||
#include <Runtime/Launch/Resources/Version.h> | ||
#include <string> | ||
/** | ||
* | ||
*/ | ||
|
||
namespace HttpGPT | ||
{ | ||
namespace Internal | ||
{ | ||
template<typename Ty> | ||
constexpr const bool HasEmptyParam(const Ty& Arg1) | ||
{ | ||
if constexpr (std::is_base_of<FString, Ty>()) | ||
{ | ||
return Arg1.IsEmpty(); | ||
} | ||
else if constexpr (std::is_base_of<FName, Ty>()) | ||
{ | ||
return Arg1.IsNone(); | ||
} | ||
else if constexpr (std::is_base_of<FText, Ty>()) | ||
{ | ||
return Arg1.IsEmptyOrWhitespace(); | ||
} | ||
else if constexpr (std::is_base_of<std::string, Ty>()) | ||
{ | ||
return Arg1.empty(); | ||
} | ||
else | ||
{ | ||
#if ENGINE_MAJOR_VERSION >= 5 | ||
return Arg1.IsEmpty(); | ||
#else | ||
return Arg1.Num() == 0; | ||
#endif | ||
} | ||
} | ||
|
||
template<typename Ty, typename ...Args> | ||
constexpr const bool HasEmptyParam(const Ty& Arg1, Args&& ...args) | ||
{ | ||
return HasEmptyParam(Arg1) || HasEmptyParam(std::forward<Args>(args)...); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters