OpenTTD Source 20260311-master-g511d3794ce
water_regions_sl.cpp File Reference

Handles saving and loading of water region data. More...

#include "../stdafx.h"
#include "saveload.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  WaterRegionChunkHandler
 Water Region savegame data is no longer used, but still needed for old savegames to load without errors. More...

Functions

void SlSkipArray ()
 Skip an array or sparse array.
const ChunkHandlerTable _water_region_chunk_handlers (water_region_chunk_handlers)

Variables

static const WaterRegionChunkHandler WRGN
static const ChunkHandlerRef water_region_chunk_handlers [] = { WRGN }

Detailed Description

Handles saving and loading of water region data.

Definition in file water_regions_sl.cpp.

Function Documentation

◆ SlSkipArray()

void SlSkipArray ( )
extern

Skip an array or sparse array.

Definition at line 728 of file saveload.cpp.

References _sl, SlIterateArray(), and SlSkipBytes().

Referenced by WaterRegionChunkHandler::Load(), and ChunkHandler::LoadCheck().

Variable Documentation

◆ water_region_chunk_handlers

const ChunkHandlerRef water_region_chunk_handlers[] = { WRGN }
static

Definition at line 31 of file water_regions_sl.cpp.

◆ WRGN

const WaterRegionChunkHandler WRGN
static

Definition at line 30 of file water_regions_sl.cpp.