Current final tweaks to Shooter Game Mode
This commit is contained in:
@@ -53,5 +53,4 @@ private:
|
||||
static FString GetValueOrHash(const FString& Value);
|
||||
|
||||
TSharedPtr<FProcessParameters> ProcessParameters;
|
||||
// TSharedPtr<FServerParameters> ServerParameters;
|
||||
};
|
||||
|
||||
@@ -2,11 +2,17 @@
|
||||
#include "GameLiftClpTypes.h"
|
||||
#include "CoreMinimal.h"
|
||||
|
||||
struct FPortResult
|
||||
{
|
||||
int32 Port;
|
||||
bool bUsedDefaultPort;
|
||||
FString WarningMessage;
|
||||
};
|
||||
|
||||
namespace cmdlineparser
|
||||
{
|
||||
// int32 GetConfiguredOrDefaultPort();
|
||||
int32 GetConfiguredOrDefaultPort(const FString& Token = TEXT("port="));
|
||||
int32 GetConfiguredOrDefaultPort(const FString& CommandLine, const FString& Token = TEXT("port="));
|
||||
FPortResult GetConfiguredOrDefaultPort(const FString& Token = TEXT("port="));
|
||||
FPortResult GetConfiguredOrDefaultPort(const FString& CommandLine, const FString& Token = TEXT("port="));
|
||||
|
||||
details::FParseResult GetValueOfToken(const FString& CommandLine, const details::EAvailableTokens Token);
|
||||
}
|
||||
@@ -18,7 +24,7 @@ namespace cmdlineparser::details
|
||||
inline static constexpr const TCHAR* DEFAULT_PORT_TOKEN = TEXT("port=");
|
||||
|
||||
FString EnsureEndsWith(const FString& Token, const TCHAR* Suffix);
|
||||
int32 GetConfiguredOrDefaultPort(const FString& CommandLine, const FString& Token);
|
||||
FPortResult GetConfiguredOrDefaultPort(const FString& CommandLine, const FString& Token);
|
||||
bool DoesRegExMatch(const FString& Text, const FString& Pattern);
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace cmdlineparser::details
|
||||
{
|
||||
enum EAvailableTokens
|
||||
{
|
||||
Unknown = 0,
|
||||
AuthToken,
|
||||
HostId,
|
||||
FleetId,
|
||||
@@ -26,11 +27,11 @@ namespace cmdlineparser::details
|
||||
|
||||
struct FParseResult
|
||||
{
|
||||
EAvailableTokens Token;
|
||||
FString Value;
|
||||
bool bIsValid;
|
||||
EErrorCodes ErrorCode;
|
||||
FString ErrorMessage;
|
||||
EAvailableTokens Token = EAvailableTokens::Unknown;
|
||||
FString Value = FString();
|
||||
bool bIsValid = false;
|
||||
EErrorCodes ErrorCode = EErrorCodes::TokenNotFound;
|
||||
FString ErrorMessage = FString();
|
||||
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user