DDraceNetwork Docs
CMotd Class Reference

#include <motd.h>

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

Public Member Functions

 CMotd ()
 
virtual int Sizeof () const override
 
const char * ServerMotd () const
 
int64_t ServerMotdUpdateTime () const
 
void Clear ()
 
bool IsActive () const
 
virtual void OnRender () override
 
virtual void OnStateChange (int NewState, int OldState) override
 
virtual void OnWindowResize () override
 
virtual void OnMessage (int MsgType, void *pRawMsg) override
 
virtual bool OnInput (const IInput::CEvent &Event) override
 
- Public Member Functions inherited from CComponent
virtual ~CComponent ()
 
virtual int Sizeof () const =0
 
class CGameClientGameClient () const
 
class IClientClient () const
 
virtual void OnStateChange (int NewState, int OldState)
 
virtual void OnConsoleInit ()
 
virtual void OnInit ()
 
virtual void OnShutdown ()
 
virtual void OnReset ()
 
virtual void OnWindowResize ()
 
virtual void OnRefreshSkins ()
 
virtual void OnRender ()
 
virtual void OnNewSnapshot ()
 
virtual void OnRelease ()
 
virtual void OnMapLoad ()
 
virtual void OnMessage (int Msg, void *pRawMsg)
 
virtual bool OnCursorMove (float x, float y, IInput::ECursorType CursorType)
 
virtual bool OnInput (const IInput::CEvent &Event)
 

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 CComponent
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 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
 
- Protected Attributes inherited from CComponent
CGameClientm_pClient
 

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()

virtual 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: