OpenTTD Source: src/saveload/randomizer_sl.cpp File Reference

OpenTTD Source 15.0-beta1

Data Structures | Functions | Variables
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:
= {
SLE_VAR(Randomizer, state[0], SLE_UINT32),
SLE_VAR(Randomizer, state[1], SLE_UINT32),
}
SLE_VAR
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
Definition saveload.h:1002
Randomizer
Structure to encapsulate the pseudo random number generators.
Definition random_func.hpp:27

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.