OpenTTD Source 20250331-master-g3c15e0c889
newgrf_stringmapping.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 NEWGRF_STRINGMAPPING_H
11#define NEWGRF_STRINGMAPPING_H
12
13#include "../strings_type.h"
14#include "../newgrf_text_type.h"
15
16void AddStringForMapping(GRFStringID source, std::function<void(StringID)> &&func);
17void AddStringForMapping(GRFStringID source, StringID *target);
19
20#endif /* NEWGRF_STRINGMAPPING_H */
void AddStringForMapping(GRFStringID source, std::function< void(StringID)> &&func)
Record a static StringID for getting translated later.
void FinaliseStringMapping()
Finalise all string mappings.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.