Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
rmlsysteminterface.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2023 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <RmlUi/Core.h>
20#include <spdlog/spdlog.h>
21
22#include <memory>
23
24#include "engine/application.h"
25
26namespace cqsp::engine {
27class CQSPSystemInterface : public Rml::SystemInterface {
28 public:
29 explicit CQSPSystemInterface(Application& app);
31
32 double GetElapsedTime() override;
33 bool LogMessage(Rml::Log::Type type, const Rml::String& message) override;
34
35 private:
37 std::shared_ptr<spdlog::logger> logger;
38};
39} // namespace cqsp::engine
Definition: application.h:47
Definition: rmlsysteminterface.h:27
double GetElapsedTime() override
Definition: rmlsysteminterface.cpp:27
CQSPSystemInterface(Application &app)
Definition: rmlsysteminterface.cpp:21
bool LogMessage(Rml::Log::Type type, const Rml::String &message) override
Definition: rmlsysteminterface.cpp:29
Application & m_app
Definition: rmlsysteminterface.h:36
std::shared_ptr< spdlog::logger > logger
Definition: rmlsysteminterface.h:37
Definition: application.cpp:54