OpenTTD Source: src/autoreplace_base.h File Reference

OpenTTD Source 15.0-RC2

Data Structures | Typedefs | Variables
autoreplace_base.h File Reference

Base class for autoreplaces/autorenews. More...

`#include "core/pool_type.hpp"`
`#include "autoreplace_type.h"`
`#include "engine_type.h"`
`#include "group_type.h"`

Go to the source code of this file.

## Data Structures
struct | EngineRenew
| Struct to store engine replacements. More...

## Typedefs
using | EngineRenewID = PoolID< uint16_t, struct EngineRenewIDTag, 64000, 0xFFFF >
using | EngineRenewPool = Pool< EngineRenew, EngineRenewID, 16 >
| Memory pool for engine renew elements.

## Variables
EngineRenewPool | _enginerenew_pool

## Detailed Description

Base class for autoreplaces/autorenews.

Definition in file autoreplace_base.h.

## Typedef Documentation

## ◆ EngineRenewID

using EngineRenewID = PoolID<uint16_t, struct EngineRenewIDTag, 64000, 0xFFFF>

Definition at line 18 of file autoreplace_base.h.

## ◆ EngineRenewPool

using EngineRenewPool = Pool<EngineRenew, EngineRenewID, 16>

Memory pool for engine renew elements.

DO NOT USE outside of engine.c. Is placed here so the only exception to this rule, the saveload code, can use it.

Definition at line 25 of file autoreplace_base.h.