mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
6600024f24
Support is incomplete for `leak_ip_address_to_all_servers` (will only ping the first address of each server) and for the `leak_ip` setting (which will also only ping the first address of each server).
42 lines
1.8 KiB
C++
42 lines
1.8 KiB
C++
#include "component.h"
|
|
|
|
#include "gameclient.h"
|
|
|
|
class IKernel *CComponent::Kernel() const { return m_pClient->Kernel(); }
|
|
class IEngine *CComponent::Engine() const { return m_pClient->Engine(); }
|
|
class IGraphics *CComponent::Graphics() const { return m_pClient->Graphics(); }
|
|
class ITextRender *CComponent::TextRender() const { return m_pClient->TextRender(); }
|
|
class IInput *CComponent::Input() const { return m_pClient->Input(); }
|
|
class IStorage *CComponent::Storage() const { return m_pClient->Storage(); }
|
|
class CUI *CComponent::UI() const { return m_pClient->UI(); }
|
|
class ISound *CComponent::Sound() const { return m_pClient->Sound(); }
|
|
class CRenderTools *CComponent::RenderTools() const { return m_pClient->RenderTools(); }
|
|
class CConfig *CComponent::Config() const { return m_pClient->Config(); }
|
|
class IConsole *CComponent::Console() const { return m_pClient->Console(); }
|
|
class IDemoPlayer *CComponent::DemoPlayer() const { return m_pClient->DemoPlayer(); }
|
|
class IDemoRecorder *CComponent::DemoRecorder(int Recorder) const { return m_pClient->DemoRecorder(Recorder); }
|
|
class IFavorites *CComponent::Favorites() const { return m_pClient->Favorites(); }
|
|
class IServerBrowser *CComponent::ServerBrowser() const { return m_pClient->ServerBrowser(); }
|
|
class CLayers *CComponent::Layers() const { return m_pClient->Layers(); }
|
|
class CCollision *CComponent::Collision() const { return m_pClient->Collision(); }
|
|
#if defined(CONF_AUTOUPDATE)
|
|
class IUpdater *CComponent::Updater() const
|
|
{
|
|
return m_pClient->Updater();
|
|
}
|
|
#endif
|
|
|
|
float CComponent::LocalTime() const
|
|
{
|
|
#if defined(CONF_VIDEORECORDER)
|
|
return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime();
|
|
#else
|
|
return Client()->LocalTime();
|
|
#endif
|
|
}
|
|
|
|
class IClient *CComponent::Client() const
|
|
{
|
|
return m_pClient->Client();
|
|
}
|