Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Net
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Net/NetDormantHolder.h |
| Include | #include "Net/NetDormantHolder.h" |
Syntax
struct FDormantReplicatorHolder
Remarks
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
Variables
| Type | Name | Description | |
|---|---|---|---|
| FActorReplicatorSet | ActorReplicatorSet | The TSet indexed by Actor that stores all their dormant object replicators | |
| TMap< FObjectKey, UE::Net::FDormantObjectMap > | FlushedObjectMap | Map of actors to guid/weakptr pairs from the last dormancy flush |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CleanupAllReplicatorsOfActor
(
AActor* DormantActor |
Remove the references to all the object replicators tied to the given actor | |
| 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. | |
| void | ClearFlushedObjectsForActor
(
AActor* Actor |
Clear stored flushed replicated sub-objects for a given actor, generally after replication or when the actor is destroyed | |
| void | CountBytes
(
FArchive& Ar |
||
| const TSharedRef< FObjectReplicator > & | CreateAndStoreReplicator
(
AActor* DormantActor, |
Create an object replicator for the given replicated object and store a reference to it. | |
| bool | DoesReplicatorExist
(
AActor* DormantActor, |
Are we currently storing an object replicator owned by the dormant actor. | |
| void | EmptySet () |
Remove every reference that is still stored. | |
| TSharedPtr< FObjectReplicator > | FindAndRemoveReplicator
(
AActor* DormantActor, |
Return the object replicator for the given replicated object but also remove the reference to that object replicator. | |
| 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 | |
| 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 | |
| TSharedPtr< FObjectReplicator > | FindReplicator
(
AActor* DormantActor, |
Return the objector replicator for the given replicated object . | |
| void | Execute the passed function on each dormant replicator we are holding | ||
| void | ForEachDormantReplicatorOfActor
(
AActor* DormantActor, |
Execute the passed function on each dormant replicatof owned by the given dormant actor | |
| bool | RemoveStoredReplicator
(
AActor* DormantActor, |
Remove our reference to the object replicator tied to the given replicated object | |
| void | StoreReplicator
(
AActor* DormantActor, |
Store an existing replicator tied to the given replicated object |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FActorDormantReplicatorsKeyFuncs | KeyFuncs that make it so the TSet can only needs a simple AActor pointer for the Key |
Typedefs
| Name | Description |
|---|---|
| FActorReplicatorSet |