UUnitTestPackageMap

Package map override, for blocking the creation of actor channels for specific actors (by detecting the actor class being created)

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/Net/UnitTestPackageMap.h

Include

#include "Net/UnitTestPackageMap.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(Transient)
class UUnitTestPackageMap : public UPackageMapClient

Remarks

Package map override, for blocking the creation of actor channels for specific actors (by detecting the actor class being created)

Variables

Name Description

Public variable

bool

 

bPendingArchetypeSpawn

Whether or not SerializeNewActor is about to spawn an actor, from an archetype

Public variable

bool

 

bWithinSerializeNewActor

Whether or not we are currently within execution of SerializeNewActor

Public variable

UMinimalClient ...

 

MinClient

Cached reference to the minimal client that owns this package map

Public variable

FOnSerializeNam...

 

OnSerializeName

Delegate for hooking SerializeName

Public variable

TMap< UObject &...

 

ReplaceObjects

Map of objects to watch and replace, in SerializeObject

Constructors

Name Description

Public function

UUnitTestPackageMap

(
    const FObjectInitializer& ObjectIn...
)

UUnitTestPackageMap

Overridden from UPackageMap

Name Description

Public function Virtual

bool

 

SerializeName

(
    FArchive& Ar,
    FName& InName
)

Public function Virtual

bool

 

SerializeNewActor

(
    FArchive& Ar,
    UActorChannel* Channel,
    AActor*& Actor
)

Standard method of serializing a new actor.

Public function Virtual

bool

 

SerializeObject

(
    FArchive& Ar,
    UClass* InClass,
    UObject*& Obj,
    FNetworkGUID* OutNetGUID
)

This is the meat of the PackageMap class which serializes a reference to Object.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss