Nakama C++ Client SDK 2.5.1
Client for Nakama Server
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
NMatch Struct Reference

Represents a realtime match. More...

#include <NMatch.h>

Public Attributes

std::string matchId
 The ID of the match, can be used to join. More...
 
bool authoritative = false
 True if it's an server-managed authoritative match, false otherwise. More...
 
std::string label
 Match label, if any. More...
 
int32_t size = 0
 Current number of users in the match. More...
 
std::vector< NUserPresencepresences
 The users currently in the match. More...
 
NUserPresence self
 A reference to the current user's presence in the match. More...
 

Detailed Description

Represents a realtime match.

Member Data Documentation

◆ authoritative

bool NMatch::authoritative = false

True if it's an server-managed authoritative match, false otherwise.

◆ label

std::string NMatch::label

Match label, if any.

◆ matchId

std::string NMatch::matchId

The ID of the match, can be used to join.

◆ presences

std::vector<NUserPresence> NMatch::presences

The users currently in the match.

◆ self

NUserPresence NMatch::self

A reference to the current user's presence in the match.

◆ size

int32_t NMatch::size = 0

Current number of users in the match.


The documentation for this struct was generated from the following file: