OpenTTD Source 20260711-master-g3fb3006dff
goal_sl.cpp File Reference

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

#include "../stdafx.h"
#include "saveload.h"
#include "compat/goal_sl_compat.h"
#include "../goal_base.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

struct  GOALChunkHandler

Functions

const ChunkHandlerTable _goal_chunk_handlers (goal_chunk_handlers)

Variables

static const SaveLoad _goals_desc []
static const GOALChunkHandler GOAL
static const ChunkHandlerRef goal_chunk_handlers []

Detailed Description

Code handling saving and loading of goals.

Definition in file goal_sl.cpp.

Variable Documentation

◆ _goals_desc

const SaveLoad _goals_desc[]
static
Initial value:
= {
}
@ U8
A 8 bit unsigned int.
Definition saveload.h:680
@ U16
A 16 bit unsigned int.
Definition saveload.h:664
#define SLE_CONDSSTR(base, variable, type, from, to)
Storage of a std::string in some savegame versions.
Definition saveload.h:958
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition saveload.h:904
#define SLE_SSTR(base, variable, type)
Storage of a std::string in every savegame version.
Definition saveload.h:1061
@ GoalProgressPlaneAcceleration
Saveload version: 182, SVN revision: 25115, r25259, r25296 Goal status and plane acceleration fixes.
Definition saveload.h:262
@ MaxVersion
Highest possible saveload version.
Definition saveload.h:421
#define SLE_VAR(base, variable, type)
Storage of a variable in every version of a savegame.
Definition saveload.h:1017
@ AllowControlCode
Allow the special control codes.
Definition string_type.h:47
Struct about goals, current and completed.
Definition goal_base.h:22
static constexpr VarType STR
Store string.
Definition saveload.h:760
static constexpr VarType U32
Store a 32 bits unsigned int.
Definition saveload.h:756
static constexpr VarType BOOL
Store a boolean (as int8).
Definition saveload.h:750

Definition at line 19 of file goal_sl.cpp.

◆ GOAL

const GOALChunkHandler GOAL
static

Definition at line 53 of file goal_sl.cpp.

◆ goal_chunk_handlers

const ChunkHandlerRef goal_chunk_handlers[]
static
Initial value:
= {
GOAL,
}

Definition at line 54 of file goal_sl.cpp.