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

OpenTTD Source 14.0-beta3

Data Structures | Functions | Variables
ai_sl.cpp File Reference
`#include "../stdafx.h"`
`#include "../debug.h"`
`#include "saveload.h"`
`#include "compat/ai_sl_compat.h"`
`#include "../company_base.h"`
`#include "../string_func.h"`
`#include "../ai/ai.hpp"`
`#include "../ai/ai_config.hpp"`
`#include "../network/network.h"`
`#include "../ai/ai_instance.hpp"`
`#include "../safeguards.h"`

Go to the source code of this file.

## Data Structures
struct | AIPLChunkHandler

## Functions
static void | SaveReal_AIPL (int *index_ptr)
const ChunkHandlerTable | _ai_chunk_handlers (ai_chunk_handlers)

## Variables
static std::string | _ai_saveload_name
static int | _ai_saveload_version
static std::string | _ai_saveload_settings
static bool | _ai_saveload_is_random
static const SaveLoad | _ai_company_desc []
static const AIPLChunkHandler | AIPL
static const ChunkHandlerRef | ai_chunk_handlers []

## Detailed Description

Handles the saveload part of the AIs

Definition in file ai_sl.cpp.

## Variable Documentation

## ◆ _ai_company_desc

const SaveLoad _ai_company_desc[]
| static

Initial value:
= {
SLEG_SSTR("name", _ai_saveload_name, SLE_STR),
SLEG_SSTR("settings", _ai_saveload_settings, SLE_STR),
SLEG_CONDVAR("version", _ai_saveload_version, SLE_UINT32, SLV_108, SL_MAX_VERSION),
SLEG_CONDVAR("is_random", _ai_saveload_is_random, SLE_BOOL, SLV_136, SL_MAX_VERSION),
}

Definition at line 31 of file ai_sl.cpp.

## ◆ ai_chunk_handlers

const ChunkHandlerRef ai_chunk_handlers[]
| static

Initial value:
= {
AIPL,
}

Definition at line 132 of file ai_sl.cpp.

SLEG_SSTR
#define SLEG_SSTR(name, variable, type)
Storage of a global std::string in every savegame version.
Definition: saveload.h:1148
SL_MAX_VERSION
@ SL_MAX_VERSION
Highest possible saveload version.
Definition: saveload.h:379
SLEG_CONDVAR
#define SLEG_CONDVAR(name, variable, type, from, to)
Storage of a global variable in some savegame versions.
Definition: saveload.h:1047
SLV_136
@ SLV_136
136 18764
Definition: saveload.h:206
SLV_108
@ SLV_108
108 15045
Definition: saveload.h:172