Navigation
API > API/Runtime > API/Runtime/Engine
Container that stores the object replicators of dormant actors and their subobjects. Note that the actor stores it's own replicator and the replicators of it's subobjects
| Name | FDormantReplicatorHolder |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/Net/NetDormantHolder.h |
| Include Path | #include "Net/NetDormantHolder.h" |
Syntax
struct FDormantReplicatorHolder
Structs
| Name | Remarks |
|---|---|
| FActorDormantReplicatorsKeyFuncs | KeyFuncs that make it so the TSet can only needs a simple AActor pointer for the Key |
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| FActorReplicatorSet | TSet< FActorDormantReplicators, FActorDormantReplicatorsKeyFuncs > | Net/NetDormantHolder.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ActorReplicatorSet | FActorReplicatorSet | The TSet indexed by Actor that stores all their dormant object replicators | Net/NetDormantHolder.h | |
| FlushedObjectMap | TMap< FObjectKey, UE::Net::FDormantObjectMap > | Map of actors to guid/weakptr pairs from the last dormancy flush | Net/NetDormantHolder.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void CleanupAllReplicatorsOfActor
(
AActor* DormantActor |
Remove the references to all the object replicators tied to the given actor | Net/NetDormantHolder.h | |
void CleanupStaleObjects
(
FNetworkObjectList& NetworkObjectList, |
Iterate over all the stored object replicators and destroy any that are tied to a replicated object that is now considered invalid. | Net/NetDormantHolder.h | |
void ClearFlushedObjectsForActor
(
AActor* Actor |
Clear stored flushed replicated sub-objects for a given actor, generally after replication or when the actor is destroyed | Net/NetDormantHolder.h | |
void CountBytes
(
FArchive& Ar |
Net/NetDormantHolder.h | ||
const TSharedRef< FObjectReplicator > & CreateAndStoreReplicator
(
AActor* DormantActor, |
Create an object replicator for the given replicated object and store a reference to it. | Net/NetDormantHolder.h | |
| Are we currently storing an object replicator owned by the dormant actor. | Net/NetDormantHolder.h | ||
void EmptySet() |
Remove every reference that is still stored. | Net/NetDormantHolder.h | |
TSharedPtr< FObjectReplicator > FindAndRemoveReplicator
(
AActor* DormantActor, |
Return the object replicator for the given replicated object but also remove the reference to that object replicator. | Net/NetDormantHolder.h | |
UE::Net::FDormantObjectMap * FindFlushedObjectsForActor
(
AActor* Actor |
Retrieve stored set of replicated sub-objects of the given actor at the time of the last dormancy flush This data is cleared when the actor is processed by ReplicateActor | Net/NetDormantHolder.h | |
UE::Net::FDormantObjectMap & FindOrAddFlushedObjectsForActor
(
AActor* Actor |
Retrieve stored set of replicated sub-objects of the given actor at the time of the last dormancy flush This data is cleared when the actor is processed by ReplicateActor | Net/NetDormantHolder.h | |
TSharedPtr< FObjectReplicator > FindReplicator
(
AActor* DormantActor, |
Return the objector replicator for the given replicated object . | Net/NetDormantHolder.h | |
void ForEachDormantReplicator
(
UE::Net::FExecuteForEachDormantReplicator Function |
Execute the passed function on each dormant replicator we are holding | Net/NetDormantHolder.h | |
void ForEachDormantReplicatorOfActor
(
AActor* DormantActor, |
Execute the passed function on each dormant replicatof owned by the given dormant actor | Net/NetDormantHolder.h | |
bool RemoveStoredReplicator
(
AActor* DormantActor, |
Remove our reference to the object replicator tied to the given replicated object | Net/NetDormantHolder.h | |
void StoreReplicator
(
AActor* DormantActor, |
Store an existing replicator tied to the given replicated object | Net/NetDormantHolder.h |