Navigation
Unreal Engine C++ API Reference > Plugins > ConcertSyncClient > FConcertClientLocalDataStore
References
Module | ConcertSyncClient |
Header | /Engine/Plugins/Developer/Concert/ConcertSync/ConcertSyncClient/Source/ConcertSyncClient/Public/ConcertClientLocalDataStore.h |
Include | #include "ConcertClientLocalDataStore.h" |
template<typename T>
TConcertDataStoreResult< T > Store
&40;
const FName & Key,
const T & Value
&41;
Remarks
Looks up the specified key, if it doesn't exist yet, adds new key/value pair at version 1, else if the stored value type matched the specified value type, overwrites the value and increment its version by one, otherwise, the operation fails. The operation result. The possible result codes are:
- EConcertDataStoreResultCode::Added if the key/value was added. The result holds a pointer on the newly added value.
- EConcertDataStoreResultCode::Exchanged if the existing key value was updated. The result holds a pointer on the latest stored value.
- EConcertDataStoreResultCode::TypeMismatch if the key was already taken but the value types did not match. The result holds a null pointer.
Parameters
Name | 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 store. |
Value | The value to store. |