| OpenTTD
    | 
Code handling saving and loading of engines. More...
#include "../stdafx.h"#include "saveload_internal.h"#include "../engine_base.h"#include "../string_func.h"#include <vector>#include "../safeguards.h"Go to the source code of this file.
| Functions | |
| static Engine * | CallocEngine () | 
| Allocate an Engine structure, but not using the pools. | |
| static void | FreeEngine (Engine *e) | 
| Deallocate an Engine constructed by CallocEngine. | |
| Engine * | GetTempDataEngine (EngineID index) | 
| static void | Save_ENGN () | 
| static void | Load_ENGN () | 
| void | CopyTempEngineData () | 
| Copy data from temporary engine array into the real engine pool. | |
| static void | Load_ENGS () | 
| static void | Save_EIDS () | 
| static void | Load_EIDS () | 
| Variables | |
| static const SaveLoad | _engine_desc [] | 
| static std::vector< Engine * > | _temp_engine | 
| static const SaveLoad | _engine_id_mapping_desc [] | 
| Save and load the mapping between the engine id in the pool, and the grf file it came from. | |
| const ChunkHandler | _engine_chunk_handlers [] | 
Code handling saving and loading of engines.
Definition in file engine_sl.cpp.
| 
 | static | 
Allocate an Engine structure, but not using the pools.
The allocated Engine must be freed using FreeEngine;
Definition at line 58 of file engine_sl.cpp.
| 
 | static | 
Deallocate an Engine constructed by CallocEngine.
| e | Engine to free. | 
Definition at line 69 of file engine_sl.cpp.
References free().
Referenced by CopyTempEngineData().
| const ChunkHandler _engine_chunk_handlers[] | 
| 
 | static | 
Definition at line 20 of file engine_sl.cpp.
| 
 | static | 
Save and load the mapping between the engine id in the pool, and the grf file it came from.
Definition at line 170 of file engine_sl.cpp.
 1.8.1.2
 1.8.1.2