OpenTTD Source  20241121-master-g67a0fccfad
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),
}
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
Definition: saveload.h:987
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.