|
OpenTTD Source
14.0-beta3
|
#include "3rdparty/nlohmann/json.hpp"Go to the source code of this file.
Functions | |
| std::string | SurveyMemoryToText (uint64_t memory) |
| Change the bytes of memory into a textual version rounded up to the biggest unit. More... | |
| void | SurveyCompanies (nlohmann::json &survey) |
| Convert company information to JSON. More... | |
| void | SurveyCompiler (nlohmann::json &survey) |
| Convert compiler information to JSON. More... | |
| void | SurveyConfiguration (nlohmann::json &survey) |
| Convert generic game information to JSON. More... | |
| void | SurveyFont (nlohmann::json &survey) |
| Convert font information to JSON. More... | |
| void | SurveyGameScript (nlohmann::json &survey) |
| Convert game-script information to JSON. More... | |
| void | SurveyGrfs (nlohmann::json &survey) |
| Convert GRF information to JSON. More... | |
| void | SurveyLibraries (nlohmann::json &survey) |
| Convert compiled libraries information to JSON. More... | |
| void | SurveyPlugins (nlohmann::json &survey) |
| Convert plugin information to JSON. More... | |
| void | SurveyOpenTTD (nlohmann::json &survey) |
| Convert generic OpenTTD information to JSON. More... | |
| void | SurveySettings (nlohmann::json &survey, bool skip_if_default) |
| Convert settings to JSON. More... | |
| void | SurveyTimers (nlohmann::json &survey) |
| Convert timer information to JSON. More... | |
| void | SurveyOS (nlohmann::json &json) |
Functions to survey the current game / system, for crashlog and network-survey.
Definition in file survey.h.
| void SurveyCompanies | ( | nlohmann::json & | survey | ) |
Convert company information to JSON.
| survey | The JSON object. |
Definition at line 299 of file survey.cpp.
| void SurveyCompiler | ( | nlohmann::json & | survey | ) |
Convert compiler information to JSON.
| survey | The JSON object. |
Definition at line 178 of file survey.cpp.
| void SurveyConfiguration | ( | nlohmann::json & | survey | ) |
Convert generic game information to JSON.
| survey | The JSON object. |
Definition at line 243 of file survey.cpp.
References _current_language, _network_server, _networking, LanguageMetadata::file, BlitterFactory::GetCurrentBlitter(), SoundDriver::GetInstance(), MusicDriver::GetInstance(), VideoDriver::GetInstance(), Driver::GetName(), Blitter::GetName(), BaseMedia< MusicSet >::GetUsedSet(), BaseMedia< SoundsSet >::GetUsedSet(), BaseMedia< GraphicsSet >::GetUsedSet(), LanguagePackHeader::isocode, LanguagePackHeader::name, GRFConfig::num_params, and GRFConfig::param.
| void SurveyFont | ( | nlohmann::json & | survey | ) |
Convert font information to JSON.
| survey | The JSON object. |
Definition at line 286 of file survey.cpp.
References FS_LARGE, FS_MONO, FS_NORMAL, FS_SMALL, FontCache::Get(), and FontCache::GetFontName().
| void SurveyGameScript | ( | nlohmann::json & | survey | ) |
Convert game-script information to JSON.
| survey | The JSON object. |
Definition at line 374 of file survey.cpp.
References Game::GetInfo().
| void SurveyGrfs | ( | nlohmann::json & | survey | ) |
Convert GRF information to JSON.
| survey | The JSON object. |
Definition at line 347 of file survey.cpp.
References _grfconfig, BSWAP32(), FormatArrayAsHex(), GCF_STATIC, GRFP_BLT_32BPP, GRFP_BLT_MASK, GRFP_BLT_UNSET, GRFP_GRF_ANY, GRFP_GRF_DOS, GRFP_GRF_MASK, GRFP_GRF_UNSET, GRFP_GRF_WINDOWS, HasBit(), and GRFConfig::next.
| void SurveyLibraries | ( | nlohmann::json & | survey | ) |
Convert compiled libraries information to JSON.
| survey | The JSON object. |
Definition at line 386 of file survey.cpp.
| std::string SurveyMemoryToText | ( | uint64_t | memory | ) |
Change the bytes of memory into a textual version rounded up to the biggest unit.
For example, 16751108096 would become 16 GiB.
| memory | The bytes of memory. |
Definition at line 479 of file survey.cpp.
| void SurveyOpenTTD | ( | nlohmann::json & | survey | ) |
Convert generic OpenTTD information to JSON.
| survey | The JSON object. |
Definition at line 206 of file survey.cpp.
| void SurveyPlugins | ( | nlohmann::json & | survey | ) |
Convert plugin information to JSON.
| survey | The JSON object. |
Definition at line 456 of file survey.cpp.
References _plugins, and SocialIntegration::GetPlugins().
| void SurveySettings | ( | nlohmann::json & | survey, |
| bool | skip_if_default | ||
| ) |
Convert settings to JSON.
| survey | The JSON object. |
Definition at line 160 of file survey.cpp.
References SurveySettingsTable().
| void SurveyTimers | ( | nlohmann::json & | survey | ) |
Convert timer information to JSON.
| survey | The JSON object. |
Definition at line 330 of file survey.cpp.
References _switch_mode_time, TimerGameCalendar::ConvertDateToYMD(), TimerGameEconomy::ConvertDateToYMD(), TimerGameTick::counter, TimerGameCalendar::date, TimerGameEconomy::date, TimerGameCalendar::date_fract, and TimerGameEconomy::date_fract.