Language:
Discover
By Skill Level
By Category

FUniqueNetIdRepl

Choose your OS:

Inheritance Hierarchy

FUniqueNetIdWrapper

FUniqueNetIdRepl

Syntax

struct FUniqueNetIdRepl : public FUniqueNetIdWrapper

Remarks

Wrapper for opaque type FUniqueNetId

Makes sure that the opaque aspects of FUniqueNetId are properly handled/serialized over network RPC and actor replication

Variables

Name Description

Protected variable

TArray < uint8 >

 

ReplicationBytes

Network serialized data cache

Constructors

Name Description

Public function

FUniqueNetIdRepl()

Public function

FUniqueNetIdRepl

(
    const FUniqueNetIdRepl & InWrapper
)

Public function

FUniqueNetIdRepl

(
    const FUniqueNetIdWrapper & InWrapp...
)

Public function

FUniqueNetIdRepl

(
    const FUniqueNetId & InUniqueNetId
)

Public function

FUniqueNetIdRepl

(
    const TSharedRef < const FUniqueNetI ...
)

Public function

FUniqueNetIdRepl

(
    const TSharedPtr < const FUniqueNetI ...
)

Destructors

Name Description

Public function Virtual

~FUniqueNetIdRepl()

Functions

Name Description

Public function

bool

 

ExportTextItem

(
    FString & ValueStr,
    FUniqueNetIdRepl const& DefaultVal...,
    UObject * Parent,
    int32 PortFlags,
    UObject * ExportRootScope
)

Export contents of this struct as a string

Public function

[ENGINE_API](API\Runtime\Engine\GameFramework\ENGINE_API_3)vo...

 

FromJson

(
    const FString & InValue
)

Create a unique id from a json string

Public function

bool

 

ImportTextItem

(
    const TCHAR *& Buffer,
    int32 PortFlags,
    UObject * Parent,
    FOutputDevice * ErrorText
)

Import string contexts and try to map them into a unique id

Protected function

void

 

MakeReplicationData()

Helper to make network serializable representation

Public function

[ENGINE_API](API\Runtime\Engine\GameFramework\ENGINE_API_3) b...

 

NetSerialize

(
    FArchive & Ar,
    UPackageMap * Map,
    bool& bOutSuccess
)

Network serialization

Public function

bool

 

Serialize

(
    FArchive & Ar
)

Serialization to any FArchive

Public function

[ENGINE_API](API\Runtime\Engine\GameFramework\ENGINE_API_3)TS ...

 

ToJson()

Convert this unique id to a json value

Protected function

void

 

UniqueIdFromString

(
    FName Type,
    const FString & Contents
)

Helper to create an FUniqueNetId from a string and its type

Overridden from FUniqueNetIdWrapper

Name Description

Public function Virtual

void

 

SetUniqueNetId

(
    const TSharedPtr < const FUniqueNetI ...
)

Assign a unique id to this wrapper object

References

Module

Engine

Header

Runtime/Engine/Classes/GameFramework/OnlineReplStructs.h