Loading...
Searching...
No Matches
TOnlineSubsystemAccelByteConfigArrayValueConverter< T > Struct Template Reference

Templated structure used to convert an array of string values to an array of typed values. This should not need to be specialized. Prefer specializing TOnlineSubsystemAccelByteConfigValueConverter<T>, which will automatically be used per element. More...

#include <OnlineSubsystemAccelByteConfig.h>

Public Member Functions

template<typename FakeT>
TEnableIf< TIsTArray< FakeT >::Value, bool >::Type ConfigArrayValueFromStringArray (TWeakPtr< class FOnlineSubsystemAccelByteConfig, ESPMode::ThreadSafe > Config, const TArray< FString > &InStringArray, T &OutArray)
 Convert a given string array to an array of templated values. Creates a TOnlineSubsystemAccelByteConfigValueConverter instance using the array element type, and converts individual strings to that type.
template<typename FakeT>
TEnableIf<!TIsTArray< FakeT >::Value, bool >::Type ConfigArrayValueFromStringArray (TWeakPtr< class FOnlineSubsystemAccelByteConfig, ESPMode::ThreadSafe > Config, const TArray< FString > &InStringArray, T &OutArray)

Detailed Description

template<typename T>
struct TOnlineSubsystemAccelByteConfigArrayValueConverter< T >

Templated structure used to convert an array of string values to an array of typed values. This should not need to be specialized. Prefer specializing TOnlineSubsystemAccelByteConfigValueConverter<T>, which will automatically be used per element.

Member Function Documentation

◆ ConfigArrayValueFromStringArray()

template<typename T>
template<typename FakeT>
TEnableIf<!TIsTArray< FakeT >::Value, bool >::Type TOnlineSubsystemAccelByteConfigArrayValueConverter< T >::ConfigArrayValueFromStringArray ( TWeakPtr< class FOnlineSubsystemAccelByteConfig, ESPMode::ThreadSafe > Config,
const TArray< FString > & InStringArray,
T & OutArray )
inline

Stub method used if the type passed in is not an array. This should be replaced with an 'if constexpr' when we are able to.