OpenTTD Source
20241108-master-g80f628063a
|
Misc functions that shouldn't be here. More...
#include "stdafx.h"
#include "landscape.h"
#include "news_func.h"
#include "ai/ai.hpp"
#include "script/script_gui.h"
#include "newgrf.h"
#include "newgrf_house.h"
#include "economy_func.h"
#include "timer/timer_game_calendar.h"
#include "timer/timer_game_economy.h"
#include "timer/timer_game_tick.h"
#include "texteff.hpp"
#include "gfx_func.h"
#include "gamelog.h"
#include "animated_tile_func.h"
#include "tilehighlight_func.h"
#include "network/network_func.h"
#include "window_func.h"
#include "core/pool_type.hpp"
#include "game/game.hpp"
#include "linkgraph/linkgraphschedule.h"
#include "station_kdtree.h"
#include "town_kdtree.h"
#include "viewport_kdtree.h"
#include "newgrf_profiling.h"
#include "3rdparty/monocypher/monocypher.h"
#include "safeguards.h"
Go to the source code of this file.
Functions | |
void | MakeNewgameSettingsLive () |
void | InitializeSound () |
void | InitializeMusic () |
Prepare the music system for use. More... | |
void | InitializeVehicles () |
void | InitializeRailGui () |
Initialize rail building GUI settings. | |
void | InitializeRoadGui () |
void | InitializeAirportGui () |
void | InitializeDockGui () |
void | InitializeGraphGui () |
void | InitializeObjectGui () |
Reset all data of the object GUI. | |
void | InitializeTownGui () |
void | InitializeIndustries () |
void | InitializeObjects () |
Initialize/reset the objects. | |
void | InitializeTrees () |
void | InitializeCompanies () |
Initialize the pool of companies. | |
void | InitializeCheats () |
Reinitialise all the cheats. | |
void | InitializeOldNames () |
Initialize the old names table memory. | |
std::string | GenerateUid (std::string_view subject) |
Generate an unique ID. More... | |
void | GenerateSavegameId () |
Generate an unique savegame ID. | |
void | InitializeGame (uint size_x, uint size_y, bool reset_date, bool reset_settings) |
Variables | |
TileIndex | _cur_tileloop_tile |
Misc functions that shouldn't be here.
Definition in file misc.cpp.
std::string GenerateUid | ( | std::string_view | subject | ) |
Generate an unique ID.
It isn't as much of an unique ID but more a hashed digest of a random string and a time. It is very likely to be unique, but it does not follow any UUID standard.
Definition at line 66 of file misc.cpp.
References FormatArrayAsHex(), and RandomBytesWithFallback().
Referenced by GenerateSavegameId().
void InitializeMusic | ( | ) |
Prepare the music system for use.
Called from InitializeGame
Definition at line 473 of file music_gui.cpp.
References _music.