Navigation
API > API/Runtime > API/Runtime/IrisCore
| Name | TStructNetTokenDataStore |
| Type | class |
| Header File | /Engine/Source/Runtime/Net/Iris/Public/Iris/ReplicationSystem/StructNetTokenDataStore.h |
| Include Path | #include "Iris/ReplicationSystem/StructNetTokenDataStore.h" |
Syntax
template<typename T>
class TStructNetTokenDataStore : public UE::Net::FNetTokenDataStore
Inheritance Hierarchy
- FNetTokenDataStore → TStructNetTokenDataStore
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TStructNetTokenDataStore
(
FNetTokenStore& InTokenStore |
Iris/ReplicationSystem/StructNetTokenDataStore.h |
Classes
| Name | Remarks |
|---|---|
| FNetSerializerRegistryDelegates | Helper for NetSerializerDescriptor setup. |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| DataType | T | Iris/ReplicationSystem/StructNetTokenDataStore.h | |
| FNetTokenStoreKey | FNetTokenDataStore::FNetTokenStoreKey | Iris/ReplicationSystem/StructNetTokenDataStore.h | |
| TNetSerializeTokenType | TBaseDelegate_ThreeParams< void, T &, FArchive &, UPackageMap * > | Need to declare as a delegate that is bound elsewhere to reduce the includes. | Iris/ReplicationSystem/StructNetTokenDataStore.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| Descriptor | TRefCountPtr< const FReplicationStateDescriptor > | Iris/ReplicationSystem/StructNetTokenDataStore.h | |
| InvalidState | T | Iris/ReplicationSystem/StructNetTokenDataStore.h | |
| NetSerializerRegistryDelegates | UE_DISABLE_OPTIMIZATION_SHIPTStructNetTokenDataStore< T >::FNetSerializerRegistryDelegates | Compiler tries to optimize out the NetSerializer since it isn't obvious that anything is referencing it during module compilation. | Iris/ReplicationSystem/StructNetTokenDataStore.h |
| NetSerializeScriptDelegate | TNetSerializeTokenType | Iris/ReplicationSystem/StructNetTokenDataStore.h | |
| Struct | UScriptStruct * | Iris/ReplicationSystem/StructNetTokenDataStore.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| HashToKey | TMap< uint64, FNetTokenStoreKey > | Iris/ReplicationSystem/StructNetTokenDataStore.h | ||
| StoredStates | TMap< uint32, T > | Iris/ReplicationSystem/StructNetTokenDataStore.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNetToken GetOrCreateToken
(
const T& InData |
Create a token for input struct. | Iris/ReplicationSystem/StructNetTokenDataStore.h | |
const T & ResolveRemoteToken
(
FNetToken Token, |
Resolve a token received from remote. | Iris/ReplicationSystem/StructNetTokenDataStore.h | |
const T & ResolveToken
(
FNetToken Token, |
Resolve NetToken, to resolve remote tokens RemoteTokenStoreState must be valid. | Iris/ReplicationSystem/StructNetTokenDataStore.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FNetTokenStoreKey GetOrCreatePersistentState
(
const T& InNetTokenData |
Creates a persistent copy of the input struct. | Iris/ReplicationSystem/StructNetTokenDataStore.h |
Overridden from FNetTokenDataStore
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FNetTokenStoreKey ReadTokenData
(
FNetSerializationContext& Context, |
Read data for a token, returns a valid StoreKey if successful read. | Iris/ReplicationSystem/StructNetTokenDataStore.h | |
virtual FNetTokenStoreKey ReadTokenData
(
FArchive& Ar, |
Iris/ReplicationSystem/StructNetTokenDataStore.h | ||
virtual void WriteTokenData
(
FNetSerializationContext& Context, |
Serialize data for a token, note there is not validation in this function. | Iris/ReplicationSystem/StructNetTokenDataStore.h | |
virtual void WriteTokenData
(
FArchive& Ar, |
Do not export things through the UPackageMap. This will break things. | Iris/ReplicationSystem/StructNetTokenDataStore.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static const T & GetInvalidState() |
Iris/ReplicationSystem/StructNetTokenDataStore.h | ||
static FName GetTokenStoreName() |
Iris/ReplicationSystem/StructNetTokenDataStore.h |