TOnlineComponent

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

OnlineServicesCommon

Header

/Engine/Plugins/Online/Experimental/OnlineServices/Source/OnlineServicesCommon/Public/Online/OnlineComponent.h

Include

#include "Online/OnlineComponent.h"

Syntax

template<typename ComponentType>
class TOnlineComponent :
    public ComponentType,
    public UE::Online::IOnlineComponent

Variables

Name Description

Protected variable

FOnlineServices...

 

Services

Constructors

Name Description

Public function

TOnlineComponent

(
    const TOnlineComponent&
)

Public function

TOnlineComponent

(
    TOnlineComponent&&
)

Public function

TOnlineComponent

(
    const FString& ComponentName,
    FOnlineServicesCommon& InServices
)

Functions

Name Description

Public function Const

TSharedRef< ...

 

AsShared()

Public function

TSharedRef< ...

 

AsShared()

TSharedFromThis-like behavior.

Public function

bool

 

Exec

(
    UWorld* World,
    const TCHAR* Cmd,
    FOutputDevice& Ar
)

Public function Const

const FStrin...

 

GetConfigName()

Public function

TArray< FStr...

 

GetConfigSectionHeiarchy

(
    const FString& OperationName
)

Public function

TOnlineAsync...

 

GetJoinableOp

(
    typename OpType::Params&& Params
)

Public function

TOnlineAsync...

 

GetMergeableOp

(
    typename OpType::Params&& Params
)

Public function

TOnlineAsync...

 

GetOp

(
    typename OpType::Params&& Params
)

Public function

FOnlineAsync...

 

GetSerialQueue()

Queue for executing tasks in serial

Public function

FOnlineAsync...

 

GetSerialQueue

(
    const FOnlineAccountIdHandle& Acco...
)

Queues for executing per-user tasks in serial

Public function Const

const Servic...

 

GetServices()

Public function

ServicesType...

 

GetServices()

Public function Const

bool

 

LoadConfig

(
    StructType& Struct,
    const FString& OperationName
)

Public function

void

 

RegisterCommand

(
    T MemberFunction
)

Default handler: generic parsing of Params, log Result.

Public function Virtual

void

 

RegisterCommands()

Public function

void

 

RegisterExecHandler

(
    const FString& Name,
    TUniquePtr< IOnlineExecHandler >&&...
)

Custom handler.

Protected function Static

TSharedRef< ...

 

SharedThis

(
    const OtherType* ThisPtr
)

Protected function Static

TSharedRef< ...

 

SharedThis

(
    OtherType* ThisPtr
)

Overridden from IOnlineComponent

Name Description

Public function Virtual

void

 

Initialize()

Called after component has been constructed. It is not safe to reference other components at this time.

Public function Virtual

void

 

LoadConfig()

Called whenever we need to reload data from config.

Public function Virtual

void

 

PostInitialize()

Called after all components have been initialized.

Public function Virtual

void

 

PreShutdown()

Called before any component has been shutdown.

Public function Virtual

void

 

Shutdown()

Called right before the component is destroyed. It is not safe to reference any other components at this time.

Public function Virtual

void

 

Tick

(
    float DeltaSeconds
)

Called every Tick.