1 | #include "component.h" |
---|---|
2 | |
3 | #include "gameclient.h" |
4 | |
5 | #include <base/system.h> |
6 | |
7 | class IKernel *CComponent::Kernel() const { return m_pClient->Kernel(); } |
8 | class IEngine *CComponent::Engine() const { return m_pClient->Engine(); } |
9 | class IGraphics *CComponent::Graphics() const { return m_pClient->Graphics(); } |
10 | class ITextRender *CComponent::TextRender() const { return m_pClient->TextRender(); } |
11 | class IInput *CComponent::Input() const { return m_pClient->Input(); } |
12 | class IStorage *CComponent::Storage() const { return m_pClient->Storage(); } |
13 | class CUi *CComponent::Ui() const { return m_pClient->Ui(); } |
14 | class ISound *CComponent::Sound() const { return m_pClient->Sound(); } |
15 | class CRenderTools *CComponent::RenderTools() const { return m_pClient->RenderTools(); } |
16 | class IConfigManager *CComponent::ConfigManager() const { return m_pClient->ConfigManager(); } |
17 | class CConfig *CComponent::Config() const { return m_pClient->Config(); } |
18 | class IConsole *CComponent::Console() const { return m_pClient->Console(); } |
19 | class IDemoPlayer *CComponent::DemoPlayer() const { return m_pClient->DemoPlayer(); } |
20 | class IDemoRecorder *CComponent::DemoRecorder(int Recorder) const { return m_pClient->DemoRecorder(Recorder); } |
21 | class IFavorites *CComponent::Favorites() const { return m_pClient->Favorites(); } |
22 | class IServerBrowser *CComponent::ServerBrowser() const { return m_pClient->ServerBrowser(); } |
23 | class CLayers *CComponent::Layers() const { return m_pClient->Layers(); } |
24 | class CCollision *CComponent::Collision() const { return m_pClient->Collision(); } |
25 | #if defined(CONF_AUTOUPDATE) |
26 | class IUpdater *CComponent::Updater() const |
27 | { |
28 | return m_pClient->Updater(); |
29 | } |
30 | #endif |
31 | |
32 | int64_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 | |
41 | float 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 | |
50 | class IClient *CComponent::Client() const |
51 | { |
52 | return m_pClient->Client(); |
53 | } |
54 | |
55 | class IHttp *CComponent::Http() const { return m_pClient->Http(); } |
56 |