OpenTTD Source: src/textfile_type.h Source File

OpenTTD Source 15.0-beta1

textfile_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 <http://www.gnu.org/licenses/>.
6 */
7
10#ifndef TEXTFILE_TYPE_H
11#define TEXTFILE_TYPE_H
12
14 enum TextfileType {
15 TFT_CONTENT_BEGIN,
16
17 TFT_README = TFT_CONTENT_BEGIN,
18 TFT_CHANGELOG,
19 TFT_LICENSE,
20
21 TFT_CONTENT_END, // This marker is used to generate the above three buttons in sequence by various of places in the code.
22
23 TFT_SURVEY_RESULT = TFT_CONTENT_END,
24 TFT_GAME_MANUAL,
25
26 TFT_END,
27};
28 DECLARE_POSTFIX_INCREMENT(TextfileType)
29 DECLARE_ENUM_AS_ADDABLE(TextfileType)
30
31#endif /* TEXTFILE_TYPE_H */
DECLARE_POSTFIX_INCREMENT
#define DECLARE_POSTFIX_INCREMENT(enum_type)
Some enums need to have allowed incrementing (i.e.
Definition enum_type.hpp:18
DECLARE_ENUM_AS_ADDABLE
#define DECLARE_ENUM_AS_ADDABLE(EnumType)
Operator that allows this enumeration to be added to any other enumeration.
Definition enum_type.hpp:45
TextfileType
TextfileType
Additional text files accompanying Tar archives.
Definition textfile_type.h:14
TFT_GAME_MANUAL
@ TFT_GAME_MANUAL
Game manual/documentation file.
Definition textfile_type.h:24
TFT_LICENSE
@ TFT_LICENSE
Content license.
Definition textfile_type.h:19
TFT_SURVEY_RESULT
@ TFT_SURVEY_RESULT
Survey result (preview)
Definition textfile_type.h:23
TFT_README
@ TFT_README
Content readme.
Definition textfile_type.h:17
TFT_CHANGELOG
@ TFT_CHANGELOG
Content changelog.
Definition textfile_type.h:18