OpenTTD Source 20250504-master-g7d7a6bd32c
|
Deals with the type of the savegame, independent of extension. More...
#include <saveload.h>
Public Member Functions | |
void | SetMode (const FiosType &ft, SaveLoadOperation fop=SLO_LOAD) |
Set the mode and file type of the file to save or load. | |
void | Set (const FiosItem &item) |
Set the title of the file. | |
Data Fields | |
SaveLoadOperation | file_op |
File operation to perform. | |
FiosType | ftype |
File type. | |
std::string | name |
Name of the file. | |
std::string | title |
Internal name of the game. | |
Deals with the type of the savegame, independent of extension.
Definition at line 416 of file saveload.h.
void FileToSaveLoad::Set | ( | const FiosItem & | item | ) |
Set the title of the file.
title | Title of the file. |
Definition at line 3434 of file saveload.cpp.
References name, SetMode(), and title.
Referenced by SaveLoadWindow::OnClick().
void FileToSaveLoad::SetMode | ( | const FiosType & | ft, |
SaveLoadOperation | fop = SLO_LOAD |
||
) |
Set the mode and file type of the file to save or load.
ft | File type. |
fop | File operation being performed. |
Definition at line 3418 of file saveload.cpp.
References FiosType::abstract, file_op, FT_INVALID, FT_NONE, ftype, and SLO_INVALID.
Referenced by openttd_main(), ClientNetworkGameSocketHandler::Receive_SERVER_MAP_DONE(), and Set().
SaveLoadOperation FileToSaveLoad::file_op |
FiosType FileToSaveLoad::ftype |
File type.
Definition at line 418 of file saveload.h.
Referenced by GenerateLandscape(), InitializeWindowsAndCaches(), SIGNChunkHandler::Load(), NetworkRestartMap(), and SetMode().
std::string FileToSaveLoad::name |
Name of the file.
Definition at line 419 of file saveload.h.
Referenced by GenerateLandscape(), LoadTownData(), SaveLoadWindow::OnTimeout(), openttd_main(), and Set().
std::string FileToSaveLoad::title |