![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NetDormantHolder.h>
Classes | |
| struct | FActorDormantReplicatorsKeyFuncs |
Public Types | |
| typedef TSet< FActorDormantReplicators, FActorDormantReplicatorsKeyFuncs > | FActorReplicatorSet |
Public Attributes | |
| FActorReplicatorSet | ActorReplicatorSet |
| TMap< FObjectKey, UE::Net::FDormantObjectMap > | FlushedObjectMap |
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
| typedef TSet<FActorDormantReplicators, FActorDormantReplicatorsKeyFuncs> UE::Net::Private::FDormantReplicatorHolder::FActorReplicatorSet |
| void UE::Net::Private::FDormantReplicatorHolder::CleanupAllReplicatorsOfActor | ( | AActor * | DormantActor | ) |
Remove the references to all the object replicators tied to the given actor
| DormantActor | The dormant actor we want to clean any reference to |
| void UE::Net::Private::FDormantReplicatorHolder::CleanupStaleObjects | ( | FNetworkObjectList & | NetworkObjectList, |
| UObject * | ReferenceOwner | ||
| ) |
Iterate over all the stored object replicators and destroy any that are tied to a replicated object that is now considered invalid. This version will decrement the subobject references stored in the networkobject list too.
| FNetworkObjectList | The netdriver's network object list |
| ReferenceOwner | The connection owner that is storing those dormant objects |
Clear stored flushed replicated sub-objects for a given actor, generally after replication or when the actor is destroyed
| Actor | The actor to clear the flushed object data for |
| const TSharedRef< FObjectReplicator > & UE::Net::Private::FDormantReplicatorHolder::CreateAndStoreReplicator | ( | AActor * | DormantActor, |
| UObject * | ReplicatedObject, | ||
| bool & | bOverwroteExistingReplicator | ||
| ) |
Create an object replicator for the given replicated object and store a reference to it. Does not initialize the Replicator but simply allocates it.
| DormantActor | The dormant actor that owns the replicated object |
| ReplicatedObject | The object that will be tied to the new ObjectReplicator. |
| bOverwroteExistingReplicator | When it returns true it means we erased an existing replicator. |
| bool UE::Net::Private::FDormantReplicatorHolder::DoesReplicatorExist | ( | AActor * | DormantActor, |
| UObject * | ReplicatedObject | ||
| ) | const |
Are we currently storing an object replicator owned by the dormant actor.
| DormantActor | The dormant actor that owns the replicated object |
| ReplicatedObject | The object that was replicated and for whom we could be storing it's FObjectReplicator. |
| void UE::Net::Private::FDormantReplicatorHolder::EmptySet | ( | ) |
Remove every reference that is still stored.
| TSharedPtr< FObjectReplicator > UE::Net::Private::FDormantReplicatorHolder::FindAndRemoveReplicator | ( | AActor * | DormantActor, |
| UObject * | ReplicatedObject | ||
| ) |
Return the object replicator for the given replicated object but also remove the reference to that object replicator.
| DormantActor | The dormant actor that owns the replicated object |
| ReplicatedObject | The object that was replicated and for whom we want it's FObjectReplicator. |
| UE::Net::FDormantObjectMap * UE::Net::Private::FDormantReplicatorHolder::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
| Actor | The actor to retrieve the object map for |
| UE::Net::FDormantObjectMap & UE::Net::Private::FDormantReplicatorHolder::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
| Actor | The actor to retrieve the object map for |
| TSharedPtr< FObjectReplicator > UE::Net::Private::FDormantReplicatorHolder::FindReplicator | ( | AActor * | DormantActor, |
| UObject * | ReplicatedObject | ||
| ) |
Return the objector replicator for the given replicated object .
| DormantActor | The dormant actor that owns the replicated object. |
| ReplicatedObject | The object that was replicated |
| void UE::Net::Private::FDormantReplicatorHolder::ForEachDormantReplicator | ( | UE::Net::FExecuteForEachDormantReplicator | Function | ) |
Execute the passed function on each dormant replicator we are holding
| void UE::Net::Private::FDormantReplicatorHolder::ForEachDormantReplicatorOfActor | ( | AActor * | DormantActor, |
| UE::Net::FExecuteForEachDormantReplicator | Function | ||
| ) |
Execute the passed function on each dormant replicatof owned by the given dormant actor
| bool UE::Net::Private::FDormantReplicatorHolder::RemoveStoredReplicator | ( | AActor * | DormantActor, |
| FObjectKey | ReplicatedObjectKey | ||
| ) |
Remove our reference to the object replicator tied to the given replicated object
| DormantActor | The dormant actor that owns the replicated object |
| ReplicatedObjectKey | The object key to a replicated object that may have stored it's object replicator here |
| void UE::Net::Private::FDormantReplicatorHolder::StoreReplicator | ( | AActor * | DormantActor, |
| UObject * | ReplicatedObject, | ||
| const TSharedRef< FObjectReplicator > & | ObjectReplicator | ||
| ) |
Store an existing replicator tied to the given replicated object
| DormantActor | The dormant actor that owns the replicated object |
| ReplicatedObject | The object that is tied to the existing replicator |
| ObjectReplicator | The existing replicator we that will be stored |
| FActorReplicatorSet UE::Net::Private::FDormantReplicatorHolder::ActorReplicatorSet |
The TSet indexed by Actor that stores all their dormant object replicators
| TMap<FObjectKey, UE::Net::FDormantObjectMap> UE::Net::Private::FDormantReplicatorHolder::FlushedObjectMap |
Map of actors to guid/weakptr pairs from the last dormancy flush