|
OpenTTD
|
Code handling saving and loading of waypoints. More...
#include "../stdafx.h"#include "../waypoint_base.h"#include "../newgrf_station.h"#include "../vehicle_base.h"#include "../town.h"#include "../newgrf.h"#include "table/strings.h"#include "saveload_internal.h"#include "../safeguards.h"Go to the source code of this file.
Data Structures | |
| struct | OldWaypoint |
| Helper structure to convert from the old waypoint system. More... | |
Functions | |
| static void | UpdateWaypointOrder (Order *o) |
| Update the waypoint orders to get the new waypoint ID. More... | |
| void | MoveWaypointsToBaseStations () |
| Perform all steps to upgrade from the old waypoints to the new version that uses station. More... | |
| static void | Load_WAYP () |
| static void | Ptrs_WAYP () |
Variables | |
| static SmallVector< OldWaypoint, 16 > | _old_waypoints |
| Temporary array with old waypoints. More... | |
| static const SaveLoad | _old_waypoint_desc [] |
| const ChunkHandler | _waypoint_chunk_handlers [] |
Code handling saving and loading of waypoints.
Definition in file waypoint_sl.cpp.
| void MoveWaypointsToBaseStations | ( | ) |
Perform all steps to upgrade from the old waypoints to the new version that uses station.
This includes some old saveload mechanics.
Definition at line 67 of file waypoint_sl.cpp.
References _m, SmallVector< T, S >::Begin(), SmallVector< T, S >::End(), IsSavegameVersionBefore(), and Tile::m2.
|
static |
Update the waypoint orders to get the new waypoint ID.
| o | the order 'list' to check. |
Definition at line 51 of file waypoint_sl.cpp.
References Order::IsType().
|
static |
Definition at line 152 of file waypoint_sl.cpp.
|
static |
Temporary array with old waypoints.
Definition at line 45 of file waypoint_sl.cpp.
| const ChunkHandler _waypoint_chunk_handlers[] |
1.8.13