24 lines
448 B
C++
24 lines
448 B
C++
#pragma once
|
|
#include "CoreMinimal.h"
|
|
|
|
struct FParamResult
|
|
{
|
|
FString Value;
|
|
bool bValid;
|
|
FString ErrorMessage;
|
|
};
|
|
|
|
namespace GameLiftValidators2
|
|
{
|
|
enum class ECliParam
|
|
{
|
|
AuthToken, FleetId, HostId, Region, WebSocketUrl, Max
|
|
};
|
|
|
|
|
|
int32 GetMaxLength(ECliParam ParamType);
|
|
int32 GetMinLength(ECliParam ParamType);
|
|
|
|
bool IsStringValid(const FString& Value, ECliParam ParamType);
|
|
bool IsNumberValid(int32 Value, int32 Min, int32 Max);
|
|
} |