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

OpenTTD Source 1.11.0-RC1

Functions | Variables
ai_sl.cpp File Reference
`#include "../stdafx.h"`
`#include "../company_base.h"`
`#include "../debug.h"`
`#include "saveload.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.

## Functions
static void | SaveReal_AIPL (int *index_ptr)
static void | Load_AIPL ()
static void | Save_AIPL ()

## Variables
static char | _ai_saveload_name [64]
static int | _ai_saveload_version
static char | _ai_saveload_settings [1024]
static bool | _ai_saveload_is_random
static const SaveLoad | _ai_company []
const ChunkHandler | _ai_chunk_handlers []

## Detailed Description

Handles the saveload part of the AIs

Definition in file ai_sl.cpp.

## Variable Documentation

## ◆ _ai_chunk_handlers

const ChunkHandler _ai_chunk_handlers[]

Initial value:
= {
{ 'AIPL', Save_AIPL, Load_AIPL, nullptr, nullptr, CH_ARRAY | CH_LAST},
}

## ◆ _ai_company

const SaveLoad _ai_company[]
| static

Initial value:
= {
SLEG_STR(_ai_saveload_name, SLE_STRB),
SLEG_STR(_ai_saveload_settings, SLE_STRB),
SLEG_CONDVAR(_ai_saveload_version, SLE_UINT32, SLV_108, SL_MAX_VERSION),
SLEG_CONDVAR(_ai_saveload_is_random, SLE_BOOL, SLV_136, SL_MAX_VERSION),
}

Definition at line 28 of file ai_sl.cpp.

CH_LAST
@ CH_LAST
Last chunk in this array.
Definition: saveload.h:410
SLEG_CONDVAR
#define SLEG_CONDVAR(variable, type, from, to)
Storage of a global variable in some savegame versions.
Definition: saveload.h:707
SLV_108
@ SLV_108
108 15045
Definition: saveload.h:172
SLV_136
@ SLV_136
136 18764
Definition: saveload.h:206
SL_MAX_VERSION
@ SL_MAX_VERSION
Highest possible saveload version.
Definition: saveload.h:328
SLEG_STR
#define SLEG_STR(variable, type)
Storage of a global string in every savegame version.
Definition: saveload.h:782