|
|
static bool | IsRunningDevMode () |
|
static FString | AccelByteStorageFile () |
|
static FString | GetCacheFilenameTelemetry () |
|
static FString | GetCacheFilenameGeneralPurpose () |
|
template<typename CharType = TCHAR, template< typename > class PrintPolicy = TPrettyJsonPrintPolicy, typename InStructType> |
| static bool | TArrayUStructToJsonString (TArray< InStructType > const &InArray, FString &OutJsonString, int64 CheckFlags=0, int64 SkipFlags=0, int32 Indent=0) |
|
static void | RemoveEmptyStrings (TSharedPtr< FJsonObject > Json) |
| template<typename TEnum> |
| static FString | GetUEnumValueAsString (TEnum Value) |
| | Convert an UEnum value into a String enum value.
|
| template<typename TEnum> |
| static TEnum | GetUEnumValueFromString (FString const &ValueString) |
| | Convert a String enum value into a UEnum value.
|
| static FString | GetPlatformString (EAccelBytePlatformType Platform) |
| | Retrieve Platform name from the specified PlatformType.
|
|
static FString | GetAuthenticatorString (EAccelByteLoginAuthFactorType Authenticator) |
|
static FString | CreateQueryParams (TMap< FString, FString > Map, FString SuffixChar=TEXT("?")) |
|
static FString | CreateQueryParamValueUrlEncodedFromArray (TArray< FString > const &Array, FString const &Delimiter=TEXT(",")) |
| static void | RemoveEmptyFieldsFromJson (TSharedPtr< FJsonObject > const &JsonObjectPtr, uint8 const Flags=FieldRemovalFlagObjects|FieldRemovalFlagStrings|FieldRemovalFlagArrays|FieldRemovalFlagNested, TArray< FString > const &ExcludedFieldNames={}) |
| | Remove fields which have empty values according to the given flags. Defaults to removing empty objects/arrays, blank strings, and looping recursively on object and array field values. Possible Removal flags are as follow:
|
| template<typename ObjectType> |
| static bool | UStructArrayToJsonObjectString (TArray< ObjectType > const &Objects, FString &OutString) |
| | Convert array of UStructs into JSON array string.
|
| static FString | GenerateSessionTeamId () |
| | Generate a new team Id for player session.
|
| static FString | EncodeHMACBase64 (FString const &Message, FString const &Key) |
| | Encode HMAC the message using built in function from UnrealEngine and then Base64 the result.
|
| static FString | GetPlatformName () |
| | Get current Platform name.
|
| static FString | XOR (FString const &Input, FString const &Key) |
| | Execute XOR operation between two string values.
|
| static FString | GetAuthTrustId () |
| | Retrieve AuthTrustId that was cached in a filed.
|
| static void | SetAuthTrustId (FString const &AuthTrustId) |
| | Store AuthTrustId value to a file.
|
| static FString | GetAuthorizationCode () |
| | Retrieve Authorization Code provided by AccelByte Launcher.
|
| static bool | IsUsingExchangeCode () |
| | Retrieve an information if get authorization code is using exchange method provided by AccelByte Launcher.
|
| static FString | GetFlightId () |
| | Get game client flight id.
|
|
static FString | AccelByteStoredKeyDeviceId () |
| | Get the key to DeviceID cache entry.
|
| static bool | GetValueFromCommandLineSwitch (const FString &Key, FString &Value) |
| | Parse command line to obtain an argument that:
|
|
static bool | GetValueFromCommandLineSwitch (const FString &Key, int &Value) |
|
static bool | GetValueFromCommandLineSwitch (const FString &Key, bool &Value) |
|
static bool | GetAccelByteConfigFromCommandLineSwitch (const FString &Key, FString &Value) |
|
static bool | GetAccelByteConfigFromCommandLineSwitch (const FString &Key, int &Value) |
|
static bool | GetAccelByteConfigFromCommandLineSwitch (const FString &Key, bool &Value) |
|
static bool | LoadABConfigFallback (const FString &Section, const FString &Key, FString &Value, const FString &DefaultSection=TEXT("")) |
|
static bool | LoadABConfigFallback (const FString &Section, const FString &Key, bool &Value, const FString &DefaultSection=TEXT("")) |
|
static bool | LoadABConfigFallback (const FString &Section, const FString &Key, int &Value, const FString &DefaultSection=TEXT("")) |
|
static FString | ConvertItemSortByToString (EAccelByteItemListSortBy const &SortBy) |
|
static FString | ConvertChallengeSortByToString (EAccelByteModelsChallengeSortBy const &SortBy) |
|
static bool | ReplaceDecimalSeparator (FString &NumberStr, const TCHAR *From, const TCHAR *To) |
|
static bool | IsNumericString (const FString &String) |
|
static bool | IsLanguageUseCommaDecimalSeparator () |
|
static bool | IsAccelByteIDValid (FString const &AccelByteId, EAccelByteIdHypensRule HypenRule=EAccelByteIdHypensRule::NO_RULE) |
|
static void | AppendModulesVersionToMap (TMap< FString, FString > &Headers) |
|
static FString | GetContentType (EAccelByteFileType const &FileType) |
|
static const FString | GenerateHashString (const FString &Message) |
|
static bool | IsValidEmail (const FString &Email) |
| static bool | SplitArraysToNum (const TArray< FString > &InArray, const int32 Num, TArray< TArray< FString > > &OutArrays) |
| static FString | ConvertAccelByteGeneralSortByToString (EAccelByteGeneralSortBy SortBy) |
| | Convert an AccelByte general sort enum into a string value.
|
| static FString | GetDevModeDeviceId (FString const &Default) |
| | Obtain DeviceID for development mode GAME CLIENT NON SHIPPING BUILD ONLY! Can be controlled using either command-line args or configuration file.
|
|
static FString | GetPluginVersionAccelByteSDK () |
|
static FString | GetPluginVersionOnlineSubsystemAccelByte () |
| FString FAccelByteUtilities::GetDevModeDeviceId |
( |
FString const & | Default | ) |
|
|
static |
Obtain DeviceID for development mode GAME CLIENT NON SHIPPING BUILD ONLY! Can be controlled using either command-line args or configuration file.
IF you want to FORCEFULLY override the device ID: Please use Command-line args. Example: "PackagedGameClient.exe -deviceid YOUR_DEVICE_ID ......"
ELSE use the "DefaultEngine.ini" file to control the device ID. First of all, select the override method using this field in configuration: ===>Section: [AccelByte.Dev] Key: DeviceIdOverrideMethod=(STRING) Value: Supported string as enumerator = {COMMANDLINE, PICK_RANDOM, RANDOMIZE, PERSISTENT} Example [AccelByte.Dev] DeviceIdOverrideMethod=RANDOMIZE IF this field is wrong or left empty: The override behavior will be done by the following method order [COMMANDLINE, PICK_RANDOM, RANDOMIZE, PERSISTENT]
Then specify the key/value for the list of PICK_RANDOM override method ===>Section: [AccelByte.Dev] Key: [_] DeviceId=(STRING[]) Example [AccelByte.Dev] +DeviceId=aaasdfsadfasd +DeviceId=sdahssdghsgfd +DeviceId=safvcgdsfgsgf +DeviceId=gsdgdsfgfafsf
COMPILED EXAMPLE from DefaultEngine.ini [AccelByte.Dev] DeviceIdOverrideMethod=[COMMANDLINE, or PICK_RANDOM, or RANDOMIZE, or PERSISTENT] +DeviceId=aaasdfsadfasd +DeviceId=sdahssdghsgfd +DeviceId=safvcgdsfgsgf +DeviceId=gsdgdsfgfafsf
To deny all override and pretend to be shipping build: ===>Section: [AccelByte.Dev]
Key: DiscardOverride=(BOOL) Example [AccelByte.Dev] DiscardOverride=true
- Parameters
-
| Default | The default value if there is no override found |
- Returns
- String of DeviceID.