OpenTTD Source 20260917-master-gec444f7315
object_sl.cpp File Reference

Code handling saving and loading of objects. More...

#include "../stdafx.h"
#include "saveload.h"
#include "compat/object_sl_compat.h"
#include "../object_base.h"
#include "../object_map.h"
#include "../town.h"
#include "newgrf_sl.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  OBJSChunkHandler
struct  OBIDChunkHandler

Functions

const ChunkHandlerTable _object_chunk_handlers (object_chunk_handlers)

Variables

static const SaveLoad _object_desc []
static const OBIDChunkHandler OBID
static const OBJSChunkHandler OBJS
static const ChunkHandlerRef object_chunk_handlers []

Detailed Description

Code handling saving and loading of objects.

Definition in file object_sl.cpp.

Variable Documentation

◆ _object_desc

const SaveLoad _object_desc[]
static
Initial value:
= {
}
#define SLE_OBJECT_ADDRESS(base, variable)
Macro to be able to pass the variable type and construct the SaveLoad::AddressFunction given a base c...
Definition saveload.h:754
@ ObjectTypeToPool
Saveload version: 186, SVN revision: 25833 Move object type from map to pool object.
Definition saveload.h:273
@ NewGRFObjectView
Saveload version: 155, SVN revision: 21453 Support for views in NewGRF objects.
Definition saveload.h:236
@ IndustryPlatform
Saveload version: 148, SVN revision: 20659 Setting to make a flat area around (new) industries.
Definition saveload.h:227
An object, such as transmitter, on the map.
Definition object_base.h:24
static SaveLoad Variable(std::string name, AddressFunction< T > address_func, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion, size_t extra=0)
Storage of a variable in some savegame versions.
Definition saveload.h:926
static SaveLoad Reference(std::string name, AddressFunction< T > address_func, SaveLoadVersion from=SaveLoadVersion::MinVersion, SaveLoadVersion to=SaveLoadVersion::MaxVersion)
Storage of a reference to a pool element in some savegame versions.
Definition saveload.h:951

Definition at line 22 of file object_sl.cpp.

◆ OBID

const OBIDChunkHandler OBID
static

Definition at line 74 of file object_sl.cpp.

◆ object_chunk_handlers

const ChunkHandlerRef object_chunk_handlers[]
static
Initial value:
= {
OBID,
OBJS,
}

Definition at line 76 of file object_sl.cpp.

◆ OBJS

const OBJSChunkHandler OBJS
static

Definition at line 75 of file object_sl.cpp.