DDraceNetwork Documentation
Loading...
Searching...
No Matches
CCommunity Class Reference

#include <serverbrowser.h>

Collaboration diagram for CCommunity:
[legend]

Public Member Functions

 CCommunity (const char *pId, const char *pName, std::optional< SHA256_DIGEST > IconSha256, const char *pIconUrl)
const char * Id () const
const char * Name () const
const char * IconUrl () const
const std::optional< SHA256_DIGEST > & IconSha256 () const
const std::vector< CCommunityCountry > & Countries () const
const std::vector< CCommunityType > & Types () const
bool HasCountry (const char *pCountryName) const
bool HasType (const char *pTypeName) const
bool HasRanks () const
CServerInfo::ERankState HasRank (const char *pMap) const

Private Attributes

char m_aId [CServerInfo::MAX_COMMUNITY_ID_LENGTH]
char m_aName [64]
std::optional< SHA256_DIGESTm_IconSha256
char m_aIconUrl [128]
std::vector< CCommunityCountrym_vCountries
std::vector< CCommunityTypem_vTypes
bool m_HasFinishes = false
std::unordered_set< CCommunityMap, CCommunityMap::SHashm_FinishedMaps

Friends

class CServerBrowser

Constructor & Destructor Documentation

◆ CCommunity()

CCommunity::CCommunity ( const char * pId,
const char * pName,
std::optional< SHA256_DIGEST > IconSha256,
const char * pIconUrl )
inline

Member Function Documentation

◆ Countries()

const std::vector< CCommunityCountry > & CCommunity::Countries ( ) const
inline

◆ HasCountry()

bool CCommunity::HasCountry ( const char * pCountryName) const

◆ HasRank()

CServerInfo::ERankState CCommunity::HasRank ( const char * pMap) const

◆ HasRanks()

bool CCommunity::HasRanks ( ) const
inline

◆ HasType()

bool CCommunity::HasType ( const char * pTypeName) const

◆ IconSha256()

const std::optional< SHA256_DIGEST > & CCommunity::IconSha256 ( ) const
inline

◆ IconUrl()

const char * CCommunity::IconUrl ( ) const
inline

◆ Id()

const char * CCommunity::Id ( ) const
inline

◆ Name()

const char * CCommunity::Name ( ) const
inline

◆ Types()

const std::vector< CCommunityType > & CCommunity::Types ( ) const
inline

◆ CServerBrowser

friend class CServerBrowser
friend

Member Data Documentation

◆ m_aIconUrl

char CCommunity::m_aIconUrl[128]
private

◆ m_aId

char CCommunity::m_aId[CServerInfo::MAX_COMMUNITY_ID_LENGTH]
private

◆ m_aName

char CCommunity::m_aName[64]
private

◆ m_FinishedMaps

std::unordered_set<CCommunityMap, CCommunityMap::SHash> CCommunity::m_FinishedMaps
private

◆ m_HasFinishes

bool CCommunity::m_HasFinishes = false
private

◆ m_IconSha256

std::optional<SHA256_DIGEST> CCommunity::m_IconSha256
private

◆ m_vCountries

std::vector<CCommunityCountry> CCommunity::m_vCountries
private

◆ m_vTypes

std::vector<CCommunityType> CCommunity::m_vTypes
private

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