IOnlineTurnBased

[IOnlineTurnBased](API\Plugins\OnlineSubsystem\Interfaces\IOnlineTurnBased) - Interface class for turn based multiplayer matches

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineTurnBasedInterface.h

Include

#include "Interfaces/OnlineTurnBasedInterface.h"

Syntax

class IOnlineTurnBased

Remarks

IOnlineTurnBased - Interface class for turn based multiplayer matches

Destructors

Name Description

Public function Virtual

~IOnlineTurnBased()

Functions

Name Description

Public function Virtual Const

FTurnBasedEv...

 

GetEventDelegate()

Public function Virtual

int32

 

GetMatchDataSize()

The size of the game specific data stored per match.

Public function Virtual Const

FTurnBasedMa...

 

GetMatchWithID

(
    FString MatchID
)

Returns the match object with the given MatchID.

Public function Virtual

UObject *...

 

GetTurnBasedMatchInterfaceObject()

Public function Virtual

void

 

LoadAllMatches

(
    FLoadTurnBasedMatchesSignature Matc...
)

Load all matches the current player is participating in.

Public function Virtual

void

 

LoadMatchWithID

(
    FString MatchID,
    FLoadTurnBasedMatchWithIDSignature ...
)

Reload a match with the given MatchID.

Public function Virtual

void

 

RegisterTurnBasedMatchInterfaceObject

(
    UObject* Object
)

Accessors referring to an object that inherits from UTurnBasedMatchInterface that acts like an FTurnBasedEventDelegate (needed for blueprints)

Public function Virtual

void

 

RemoveMatch

(
    FTurnBasedMatchRef Match,
    FRemoveMatchSignature RemoveMatchCa...
)

Deletes a match entirely from the platform specific service.

Public function Virtual

void

 

SetEventDelegate

(
    FTurnBasedEventDelegateWeakPtr Dele...
)

Accessors for a delegate that gets called when match-specific events happen (such as the match ending or it is now the current players turn)

Public function Virtual

void

 

SetMatchmakerDelegate

Set a delegate to be called when matchmaking succeeds, fails, or is canceled.

Public function Virtual

void

 

ShowMatchmaker

(
    const FTurnBasedMatchRequest& Matc...
)

Show the platform specific matchmaker interface with the parameters given in FTurnBasedMatchRequest.

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