OpenTTD Source
1.11.0-beta2
|
#include "../stdafx.h"
#include "../station_base.h"
#include "../waypoint_base.h"
#include "../roadstop_base.h"
#include "../vehicle_base.h"
#include "../newgrf_station.h"
#include "saveload.h"
#include "table/strings.h"
#include "../safeguards.h"
Go to the source code of this file.
Data Structures | |
struct | FlowSaveLoad |
Typedefs | |
typedef std::pair< const StationID, std::list< CargoPacket * > > | StationCargoPair |
Functions | |
static void | UpdateWaypointOrder (Order *o) |
Update the buoy orders to be waypoint orders. More... | |
void | MoveBuoysToWaypoints () |
Perform all steps to upgrade from the old station buoys to the new version that uses waypoints. More... | |
void | AfterLoadStations () |
void | AfterLoadRoadStops () |
(Re)building of road stop caches after loading a savegame. | |
const SaveLoad * | GetGoodsDesc () |
Wrapper function to get the GoodsEntry's internal structure while some of the variables itself are private. More... | |
static void | SwapPackets (GoodsEntry *ge) |
Swap the temporary packets with the packets without specific destination in the given goods entry. More... | |
static void | Load_STNS () |
static void | Ptrs_STNS () |
const SaveLoad * | GetBaseStationDescription () |
Get the base station description to be used for SL_ST_INCLUDE. More... | |
static void | RealSave_STNN (BaseStation *bst) |
static void | Save_STNN () |
static void | Load_STNN () |
static void | Ptrs_STNN () |
static void | Save_ROADSTOP () |
static void | Load_ROADSTOP () |
static void | Ptrs_ROADSTOP () |
Variables | |
static const SaveLoad | _roadstop_desc [] |
static const SaveLoad | _old_station_desc [] |
static uint16 | _waiting_acceptance |
static uint32 | _num_flows |
static uint16 | _cargo_source |
static uint32 | _cargo_source_xy |
static uint8 | _cargo_days |
static Money | _cargo_feeder_share |
static const SaveLoad | _station_speclist_desc [] |
std::list< CargoPacket * > | _packets |
uint32 | _num_dests |
static const SaveLoad | _flow_desc [] |
static const SaveLoad | _cargo_list_desc [] |
static const SaveLoad | _base_station_desc [] |
static OldPersistentStorage | _old_st_persistent_storage |
static const SaveLoad | _station_desc [] |
static const SaveLoad | _waypoint_desc [] |
const ChunkHandler | _station_chunk_handlers [] |
Code handling saving and loading of stations.
Definition in file station_sl.cpp.
const SaveLoad* GetBaseStationDescription | ( | ) |
Get the base station description to be used for SL_ST_INCLUDE.
Definition at line 464 of file station_sl.cpp.
const SaveLoad* GetGoodsDesc | ( | ) |
Wrapper function to get the GoodsEntry's internal structure while some of the variables itself are private.
The stations, via GoodsEntry, have a CargoList.
Definition at line 258 of file station_sl.cpp.
References SLEG_CONDVAR.
void MoveBuoysToWaypoints | ( | ) |
Perform all steps to upgrade from the old station buoys to the new version that uses waypoints.
This includes some old saveload mechanics.
Definition at line 40 of file station_sl.cpp.
References _me, BaseStation::build_date, Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_station_pool >::CanAllocateItem(), BaseStation::delete_ctr, GetStationIndex(), GetTileOwner(), HVOT_WAYPOINT, INVALID_TILE, IsInsideBS(), IsTileType(), SpecializedStation< Station, false >::Iterate(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_orderlist_pool >::Iterate(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_vehicle_pool >::Iterate(), MP_STATION, BaseStation::name, Town::name, Order::next, BaseStation::owner, OWNER_NONE, SB(), BaseStation::string_id, TILE_AREA_LOOP, BaseStation::town, Waypoint::town_cn, UpdateWaypointOrder(), VEH_SHIP, and VEH_TRAIN.
|
static |
Swap the temporary packets with the packets without specific destination in the given goods entry.
Assert that at least one of those is empty.
ge | Goods entry to swap with. |
Definition at line 301 of file station_sl.cpp.
References GoodsEntry::cargo, and CargoList< Tinst, Tcont >::Packets().
|
static |
Update the buoy orders to be waypoint orders.
o | the order 'list' to check. |
Definition at line 26 of file station_sl.cpp.
References Order::IsType().
Referenced by MoveBuoysToWaypoints().
|
static |
Definition at line 387 of file station_sl.cpp.
|
static |
Definition at line 290 of file station_sl.cpp.
|
static |
Definition at line 245 of file station_sl.cpp.
|
static |
Definition at line 143 of file station_sl.cpp.
const ChunkHandler _station_chunk_handlers[] |
|
static |
Definition at line 227 of file station_sl.cpp.
|
static |
Definition at line 447 of file station_sl.cpp.