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

Code handling saving and loading of script randomizers. More...

#include "../stdafx.h"
#include "../script/api/script_object.hpp"
#include "saveload.h"
#include "saveload_internal.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  SRNDChunkHandler

Functions

const ChunkHandlerTable _randomizer_chunk_handlers (randomizer_chunk_handlers)

Variables

static const SaveLoad _randomizer_desc []
static const SRNDChunkHandler SRND
static const ChunkHandlerRef randomizer_chunk_handlers []

Detailed Description

Code handling saving and loading of script randomizers.

Definition in file randomizer_sl.cpp.

Variable Documentation

◆ _randomizer_desc

const SaveLoad _randomizer_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
Structure to encapsulate the pseudo random number generators.
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

Definition at line 16 of file randomizer_sl.cpp.

◆ randomizer_chunk_handlers

const ChunkHandlerRef randomizer_chunk_handlers[]
static
Initial value:
= {
SRND,
}

Definition at line 47 of file randomizer_sl.cpp.

◆ SRND

const SRNDChunkHandler SRND
static

Definition at line 46 of file randomizer_sl.cpp.