FUniqueNetIdRepl

Wrapper for opaque type [FUniqueNetId](API\Runtime\CoreUObject\UObject\FUniqueNetId)

Windows
MacOS
Linux

Inheritance Hierarchy

FUniqueNetIdWrapper

FUniqueNetIdRepl

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/OnlineReplStructs.h

Include

#include "GameFramework/OnlineReplStructs.h"

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 Const

bool

 

ExportTextItem

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

Export contents of this struct as a string

Public function

void

 

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

bool

 

NetSerialize

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

Network serialization

Public function

bool

 

Serialize

(
    FArchive& Ar
)

Serialization to any FArchive

Public function Const

TSharedRef< ...

 

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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback