New Parser Completed. Verification next.
This commit is contained in:
24
Source/FPSTemplate/Public/GameLift/GameLiftValidators_old.h
Normal file
24
Source/FPSTemplate/Public/GameLift/GameLiftValidators_old.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user