DDraceNetwork Docs
CScorePlayerResult Struct Reference

#include <scoreworker.h>

Inheritance diagram for CScorePlayerResult:
[legend]
Collaboration diagram for CScorePlayerResult:
[legend]

Public Types

enum  { MAX_MESSAGES = 10 }
 
enum  Variant {
  DIRECT , ALL , BROADCAST , MAP_VOTE ,
  PLAYER_INFO , PLAYER_TIMECP
}
 

Public Member Functions

 CScorePlayerResult ()
 
void SetVariant (Variant v)
 
- Public Member Functions inherited from ISqlResult
virtual ~ISqlResult ()=default
 

Public Attributes

enum CScorePlayerResult::Variant m_MessageKind
 
union {
   char   m_aaMessages [MAX_MESSAGES][512]
 
   char   m_aBroadcast [1024]
 
   struct {
      std::optional< float >   m_Time
 
      float   m_aTimeCp [NUM_CHECKPOINTS]
 
      int   m_Birthday
 
      char   m_aRequestedPlayer [MAX_NAME_LENGTH]
 
   }   m_Info = {}
 
   struct {
      char   m_aReason [VOTE_REASON_LENGTH]
 
      char   m_aServer [32+1]
 
      char   m_aMap [MAX_MAP_LENGTH+1]
 
   }   m_MapVote
 
m_Data = {}
 
- Public Attributes inherited from ISqlResult
std::atomic_bool m_Completed {false}
 
bool m_Success = false
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MAX_MESSAGES 

◆ Variant

Enumerator
DIRECT 
ALL 
BROADCAST 
MAP_VOTE 
PLAYER_INFO 
PLAYER_TIMECP 

Constructor & Destructor Documentation

◆ CScorePlayerResult()

CScorePlayerResult::CScorePlayerResult ( )

Member Function Documentation

◆ SetVariant()

void CScorePlayerResult::SetVariant ( Variant  v)

Member Data Documentation

◆ m_aaMessages

char CScorePlayerResult::m_aaMessages[MAX_MESSAGES][512]

◆ m_aBroadcast

char CScorePlayerResult::m_aBroadcast[1024]

◆ m_aMap

char CScorePlayerResult::m_aMap[MAX_MAP_LENGTH+1]

◆ m_aReason

char CScorePlayerResult::m_aReason[VOTE_REASON_LENGTH]

◆ m_aRequestedPlayer

char CScorePlayerResult::m_aRequestedPlayer[MAX_NAME_LENGTH]

◆ m_aServer

char CScorePlayerResult::m_aServer[32+1]

◆ m_aTimeCp

float CScorePlayerResult::m_aTimeCp[NUM_CHECKPOINTS]

◆ m_Birthday

int CScorePlayerResult::m_Birthday

◆ 

union { ... } CScorePlayerResult::m_Data

◆ 

struct { ... } CScorePlayerResult::m_Info

◆ 

struct { ... } CScorePlayerResult::m_MapVote

◆ m_MessageKind

enum CScorePlayerResult::Variant CScorePlayerResult::m_MessageKind

◆ m_Time

std::optional<float> CScorePlayerResult::m_Time

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