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

#include <broadcast.h>

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

Public Member Functions

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

Private Member Functions

void RenderServerBroadcast ()

Private Attributes

char m_aBroadcastText [1024]
int m_BroadcastTick
float m_BroadcastRenderOffset
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

Member Function Documentation

◆ DoBroadcast()

void CBroadcast::DoBroadcast ( const char * pText)

◆ OnMessage()

void CBroadcast::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 CBroadcast::OnRender ( )
overridevirtual

Called when the component should get rendered.

The render order depends on the component insertion order.

Reimplemented from CComponent.

◆ OnReset()

void CBroadcast::OnReset ( )
overridevirtual

Called to reset the component. This method is usually called on your component constructor to avoid code duplication.

See also
CHud::CHud()
CHud::OnReset()

Reimplemented from CComponent.

◆ OnWindowResize()

void CBroadcast::OnWindowResize ( )
overridevirtual

Called when the window has been resized.

Reimplemented from CComponent.

◆ RenderServerBroadcast()

void CBroadcast::RenderServerBroadcast ( )
private

◆ Sizeof()

int CBroadcast::Sizeof ( ) const
inlineoverridevirtual

Gets the size of the non-abstract component.

Implements CComponent.

Member Data Documentation

◆ m_aBroadcastText

char CBroadcast::m_aBroadcastText[1024]
private

◆ m_BroadcastRenderOffset

float CBroadcast::m_BroadcastRenderOffset
private

◆ m_BroadcastTick

int CBroadcast::m_BroadcastTick
private

◆ m_TextContainerIndex

STextContainerIndex CBroadcast::m_TextContainerIndex
private

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