1#include "component.h"
2
3#include "gameclient.h"
4
5#include <base/system.h>
6
7class IKernel *CComponent::Kernel() const { return m_pClient->Kernel(); }
8class IEngine *CComponent::Engine() const { return m_pClient->Engine(); }
9class IGraphics *CComponent::Graphics() const { return m_pClient->Graphics(); }
10class ITextRender *CComponent::TextRender() const { return m_pClient->TextRender(); }
11class IInput *CComponent::Input() const { return m_pClient->Input(); }
12class IStorage *CComponent::Storage() const { return m_pClient->Storage(); }
13class CUi *CComponent::Ui() const { return m_pClient->Ui(); }
14class ISound *CComponent::Sound() const { return m_pClient->Sound(); }
15class CRenderTools *CComponent::RenderTools() const { return m_pClient->RenderTools(); }
16class IConfigManager *CComponent::ConfigManager() const { return m_pClient->ConfigManager(); }
17class CConfig *CComponent::Config() const { return m_pClient->Config(); }
18class IConsole *CComponent::Console() const { return m_pClient->Console(); }
19class IDemoPlayer *CComponent::DemoPlayer() const { return m_pClient->DemoPlayer(); }
20class IDemoRecorder *CComponent::DemoRecorder(int Recorder) const { return m_pClient->DemoRecorder(Recorder); }
21class IFavorites *CComponent::Favorites() const { return m_pClient->Favorites(); }
22class IServerBrowser *CComponent::ServerBrowser() const { return m_pClient->ServerBrowser(); }
23class CLayers *CComponent::Layers() const { return m_pClient->Layers(); }
24class CCollision *CComponent::Collision() const { return m_pClient->Collision(); }
25#if defined(CONF_AUTOUPDATE)
26class IUpdater *CComponent::Updater() const
27{
28 return m_pClient->Updater();
29}
30#endif
31
32int64_t CComponent::time() const
33{
34#if defined(CONF_VIDEORECORDER)
35 return IVideo::Current() ? IVideo::Time() : time_get();
36#else
37 return time_get();
38#endif
39}
40
41float CComponent::LocalTime() const
42{
43#if defined(CONF_VIDEORECORDER)
44 return IVideo::Current() ? IVideo::LocalTime() : Client()->LocalTime();
45#else
46 return Client()->LocalTime();
47#endif
48}
49
50class IClient *CComponent::Client() const
51{
52 return m_pClient->Client();
53}
54
55class IHttp *CComponent::Http() const { return m_pClient->Http(); }
56