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

#include <motd.h>

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

Public Member Functions

 CMotd ()
int Sizeof () const override
const char * ServerMotd () const
int64_t ServerMotdUpdateTime () const
void Clear ()
bool IsActive () const
void OnRender () override
void OnStateChange (int NewState, int OldState) override
void OnWindowResize () override
void OnMessage (int MsgType, void *pRawMsg) override
bool OnInput (const IInput::CEvent &Event) override
Public Member Functions inherited from CComponent
virtual void OnConsoleInit ()
virtual void OnInit ()
virtual void OnShutdown ()
virtual void OnReset ()
virtual void OnUpdate ()
virtual void OnNewSnapshot ()
virtual void OnRelease ()
virtual void OnMapLoad ()
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType)
virtual bool OnTouchState (const std::vector< IInput::CTouchFingerState > &vTouchFingerStates)
Public Member Functions inherited from CComponentInterfaces
virtual void OnInterfacesInit (CGameClient *pClient)
virtual ~CComponentInterfaces ()=default

Private Attributes

char m_aServerMotd [std::size(g_Config.m_SvMotd)]
int64_t m_ServerMotdTime
int64_t m_ServerMotdUpdateTime
int m_RectQuadContainer = -1
STextContainerIndex m_TextContainerIndex

Additional Inherited Members

Protected Member Functions inherited from CComponentInterfaces
class CGameClientGameClient () const
class IClientClient () const
class IKernelKernel () const
class IEngineEngine () const
class IGraphicsGraphics () const
class ITextRenderTextRender () const
class IInputInput () const
class IStorageStorage () const
class CUiUi () const
class ISoundSound () const
class CRenderToolsRenderTools () const
class CRenderMapRenderMap () const
class IConfigManagerConfigManager () const
class CConfigConfig () const
class IConsoleConsole () const
class IDemoPlayerDemoPlayer () const
class IDemoRecorderDemoRecorder (int Recorder) const
class IFavoritesFavorites () const
class IServerBrowserServerBrowser () const
class CLayersLayers () const
class CCollisionCollision () const
int64_t time () const
float LocalTime () const
class IHttpHttp () const

Constructor & Destructor Documentation

◆ CMotd()

CMotd::CMotd ( )

Member Function Documentation

◆ Clear()

void CMotd::Clear ( )

◆ IsActive()

bool CMotd::IsActive ( ) const

◆ OnInput()

bool CMotd::OnInput ( const IInput::CEvent & Event)
overridevirtual

Called on a input event.

Parameters
EventThe input event.

Reimplemented from CComponent.

◆ OnMessage()

void CMotd::OnMessage ( int Msg,
void * pRawMsg )
overridevirtual

Called when receiving a network message.

Parameters
MsgThe message type.
pRawMsgThe message data.
See also
NETMSGTYPE_SV_DDRACETIME
CNetMsg_Sv_DDRaceTime

Reimplemented from CComponent.

◆ OnRender()

void CMotd::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnStateChange()

void CMotd::OnStateChange ( int NewState,
int OldState )
overridevirtual

This method is called when the client changes state, e.g from offline to online.

See also
IClient::STATE_CONNECTING
IClient::STATE_LOADING
IClient::STATE_ONLINE

Reimplemented from CComponent.

◆ OnWindowResize()

void CMotd::OnWindowResize ( )
overridevirtual

Called when the window has been resized.

Reimplemented from CComponent.

◆ ServerMotd()

const char * CMotd::ServerMotd ( ) const
inline

◆ ServerMotdUpdateTime()

int64_t CMotd::ServerMotdUpdateTime ( ) const
inline

◆ Sizeof()

int CMotd::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_aServerMotd

char CMotd::m_aServerMotd[std::size(g_Config.m_SvMotd)]
private

◆ m_RectQuadContainer

int CMotd::m_RectQuadContainer = -1
private

◆ m_ServerMotdTime

int64_t CMotd::m_ServerMotdTime
private

◆ m_ServerMotdUpdateTime

int64_t CMotd::m_ServerMotdUpdateTime
private

◆ m_TextContainerIndex

STextContainerIndex CMotd::m_TextContainerIndex
private

The documentation for this class was generated from the following files:
  • src/game/client/components/motd.h
  • src/game/client/components/motd.cpp