Navigation
API > API/Runtime > API/Runtime/IrisCore > API/Runtime/IrisCore/Iris > API/Runtime/IrisCore/Iris/ReplicationSystem
References
| Module | IrisCore |
| Header | /Engine/Source/Runtime/Experimental/Iris/Core/Public/Iris/ReplicationSystem/NetTokenStore.h |
| Include | #include "Iris/ReplicationSystem/NetTokenStore.h" |
Syntax
class FNetTokenStore
Remarks
FNetTokenStore Main system for using NetTokensm currently owns type specific NetTokenDataStores and per connection state Currently we have a unique instance per NetDriver/ReplicationSystem but it is possible we will share this across game instance.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendExport
(
FNetSerializationContext&, |
Utility methods, consolidate with other changes to NetTokenStore as next step. | |
| void | ConditionalReadNetTokenData
(
FNetSerializationContext& Context, |
Conditionally read NetTokenData if exported. | |
| void | ConditionalWriteNetTokenData
(
FNetSerializationContext& Context, |
Conditionally write NetTokenData unless already exported. | |
| bool | Create and return data store of specified type, it will be owned by NetTokenStore. | ||
| FNetTokenDataStore * | GetDataStore
(
FName Name |
Get data store by name. | |
| const FNetTokenDataStore * | GetDataStore
(
FName Name |
Get const access to data store by name. | |
| T * | GetDataStore () |
Return data store of specified type. | |
| const T * | GetDataStore () |
Return data store of specified type. | |
| const FNetTokenStoreState * | FNetTokenStoreState maps from NetTokenIndex -> NetTokenStoreKey (Index) Remote and local NetTokens use separate NetTokensStore states. | ||
| FNetTokenStoreState * | Get access to the local NetTokenStoreState | ||
| const FNetTokenStoreState * | GetRemoteNetTokenStoreState
(
uint32 ConnectionId |
Get const access to RemoteNetTokenStoreState for given ConnectionId. | |
| FNetTokenStoreState * | GetRemoteNetTokenStoreState
(
uint32 ConnectionId |
Get RemoteNetTokenStoreState for given ConnectionId. | |
| void | Init
(
FInitParams& InitParams |
||
| void | InitRemoteNetTokenStoreState
(
uint32 ConnectionId |
Init RemoteNetTokenStoreState for given ConnectionId, if it already exists it will be reset. | |
| bool | IsAuthority () |
Returns true if this is the authority, typically the server. | |
| bool | IsLocalToken
(
const FNetToken NetToken |
A token is local if the authority of the NetTokenStore and the token matches, Invalid tokens are always local. | |
| FNetToken | ReadNetToken
(
FArchive& Ar |
Read NetToken including TypeId | |
| FNetToken | ReadNetToken
(
FNetSerializationContext& Context |
Read NetToken including TypeId | |
| FNetToken | ReadNetTokenWithKnownType
(
FNetSerializationContext& Context |
Convenience method to read a NetToken without reading type bits. | |
| void | ReadTokenData
(
FNetSerializationContext& Context, |
Read data associated with the NetToken. | |
| void | ReadTokenData
(
FArchive& Ar, |
Read data associated with the NetToken. | |
| bool | RegisterDataStore
(
TUniquePtr< FNetTokenDataStore > DataStore, |
Register DataStore and return true if it was registered. | |
| void | WriteNetToken
(
FNetSerializationContext& Context, |
Write NetToken including TypeId | |
| void | WriteNetToken
(
FArchive& Ar, |
Write NetToken including TypeId | |
| void | WriteNetTokenWithKnownType
(
FNetSerializationContext& Context, |
Convenience method to Write a NetToken without writing type bits In development builds it will verify that the token type matches the StoreType, otherwise it will skip the lookup of DataStore. | |
| void | WriteTokenData
(
FNetSerializationContext& Context, |
Write data associated with the NetToken. | |
| void | WriteTokenData
(
FArchive& Ar, |
Write data associated with the NetToken. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FInitParams | External configuration variables used to initialize the NetTokenStore |
Typedefs
| Name | Description |
|---|---|
| FNetTokenStoreKey |