OpenTTD Source: src/saveload/newgrf_sl.h File Reference

OpenTTD Source 1.11.0-RC1

Functions
newgrf_sl.h File Reference
`#include "../newgrf_commons.h"`

Go to the source code of this file.

## Functions
void | Save_NewGRFMapping (const OverrideManagerBase &mapping)
| Save a GRF ID + local id -> OpenTTD's id mapping. More...
void | Load_NewGRFMapping (OverrideManagerBase &mapping)
| Load a GRF ID + local id -> OpenTTD's id mapping. More...

## Detailed Description

Code handling saving and loading of NewGRF mappings.

Definition in file newgrf_sl.h.

## Function Documentation

## ◆ Load_NewGRFMapping()

void Load_NewGRFMapping | ( | OverrideManagerBase & | mapping | ) |

Load a GRF ID + local id -> OpenTTD's id mapping.

Parameters

  mapping | The mapping to load.

Definition at line 42 of file newgrf_sl.cpp.

References _newgrf_mapping_desc, OverrideManagerBase::mapping_ID, OverrideManagerBase::ResetMapping(), SlErrorCorrupt(), SlIterateArray(), and SlObject().

## ◆ Save_NewGRFMapping()

void Save_NewGRFMapping | ( | const OverrideManagerBase & | mapping | ) |

Save a GRF ID + local id -> OpenTTD's id mapping.

Parameters

  mapping | The mapping to save.

Definition at line 30 of file newgrf_sl.cpp.