OpenTTD Source 20261129-master-g72a8bdc861
autoreplace_type.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
10#ifndef AUTOREPLACE_TYPE_H
11#define AUTOREPLACE_TYPE_H
12
13#include "engine_type.h"
14#include "group_type.h"
15
20 EngineID from = EngineID::Invalid();
21 EngineID to = EngineID::Invalid();
22 bool replace_when_old = false;
23};
24
29 GroupID group_id;
30};
31
35using EngineRenewList = std::vector<EngineRenew>;
36
37#endif /* AUTOREPLACE_TYPE_H */
std::vector< EngineRenew > EngineRenewList
A list to group EngineRenew directives together (such as per-company).
Types related to engines.
PoolID< uint16_t, struct EngineIDTag, 64000, 0xFFFF > EngineID
Unique identification number of an engine.
Definition engine_type.h:25
Types of a group.
Information about engine autorenews and autoreplacements.
EngineID from
Engine to replace from.
EngineID to
Engine to replace to.
bool replace_when_old
Do replacement only when vehicle is old.
EngineRenew with group for savegame conversion.
GroupID group_id
Group of replacement.