Current final tweaks to Shooter Game Mode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user