Module |
|
Header |
/Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncClient/Source/ConcertSyncClient/Public/IConcertClientDataStore.h |
Include |
#include "IConcertClientDataStore.h" |
template<typename T>
TFuture< TConcertDataStoreResult< T > > FetchAs
(
const FName & Key
) const
Looks up the specified key, if found and types match, fetches the corresponding value. If the key is not found or the requested types doesn't match the stored type, the operation fails.
The operation result, as a future. The result code can be:
EConcertDataStoreResultCode::Fetched if the key value was retrieved.
EConcertDataStoreResultCode::NotFound if the key could not be found.
EConcertDataStoreResultCode::TypeMismatch if the key was found, but the requested type did not match the stored type.
Parameter |
Description |
---|---|
T |
Any USTRUCT() struct or a supported basic types (int8, uint8, int16, uint16, int32, uint32, int64, uint64, float, double, bool, FName, FText, FString). |
Key |
The value name to lookup. |