3#ifndef GAME_CLIENT_COMPONENTS_COUNTRYFLAGS_H
4#define GAME_CLIENT_COMPONENTS_COUNTRYFLAGS_H
22 virtual int Sizeof()
const override {
return sizeof(*this); }
27 const CCountryFlag *
GetByIndex(
size_t Index)
const;
28 void Render(
const CCountryFlag *pFlag,
ColorRGBA Color,
float x,
float y,
float w,
float h);
29 void Render(
int CountryCode,
ColorRGBA Color,
float x,
float y,
float w,
float h);
Definition: component.h:20
Definition: countryflags.h:11
const CCountryFlag * GetByCountryCode(int CountryCode) const
Definition: countryflags.cpp:132
int m_FlagsQuadContainerIndex
Definition: countryflags.h:41
std::vector< CCountryFlag > m_vCountryFlags
Definition: countryflags.h:38
size_t m_aCodeIndexLUT[CODE_RANGE]
Definition: countryflags.h:39
void OnInit() override
Definition: countryflags.cpp:106
virtual int Sizeof() const override
Definition: countryflags.h:22
void Render(const CCountryFlag *pFlag, ColorRGBA Color, float x, float y, float w, float h)
Definition: countryflags.cpp:142
size_t Num() const
Definition: countryflags.cpp:127
const CCountryFlag * GetByIndex(size_t Index) const
Definition: countryflags.cpp:137
@ CODE_UB
Definition: countryflags.h:35
@ CODE_LB
Definition: countryflags.h:34
@ CODE_RANGE
Definition: countryflags.h:36
void LoadCountryflagsIndexfile()
Definition: countryflags.cpp:16
Definition: graphics.h:200
int str_comp(const char *a, const char *b)
Definition: system.cpp:2933
Definition: countryflags.h:14
char m_aCountryCodeString[8]
Definition: countryflags.h:16
int m_CountryCode
Definition: countryflags.h:15
IGraphics::CTextureHandle m_Texture
Definition: countryflags.h:17
bool operator<(const CCountryFlag &Other) const
Definition: countryflags.h:19