OpenTTD Source 20241224-master-gee860a5c8e
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.
 

Variables

EngineRenewPool _enginerenew_pool
 

Detailed Description

Base class for autoreplaces/autorenews.

Definition in file autoreplace_base.h.

Typedef Documentation

◆ EngineRenewID

typedef uint16_t EngineRenewID

Definition at line 18 of file autoreplace_base.h.

◆ 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.