OpenTTD Source  20241121-master-g67a0fccfad
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

typedef uint16_t EngineRenewID
 
typedef Pool< EngineRenew, EngineRenewID, 16, 64000 > EngineRenewPool
 Memory pool for engine renew elements. More...
 

Variables

EngineRenewPool _enginerenew_pool
 

Detailed Description

Base class for autoreplaces/autorenews.

Definition in file autoreplace_base.h.

Typedef Documentation

◆ EngineRenewPool

typedef Pool<EngineRenew, EngineRenewID, 16, 64000> EngineRenewPool

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.