-
-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathlegacyconfig.hpp
More file actions
25 lines (20 loc) · 820 Bytes
/
legacyconfig.hpp
File metadata and controls
25 lines (20 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/.
*
* The original code is copyright (c) 2022, open.mp team and contributors.
*/
#pragma once
#include <component.hpp>
#include <types.hpp>
static const UID LegacyConfigComponent_UID = UID(0x24ef6216838f9ffc);
/// The text label component which is a global text label pool
struct ILegacyConfigComponent : public IComponent
{
PROVIDE_UID(LegacyConfigComponent_UID);
/// Look up the new config by legacy name (empty if none).
virtual StringView getConfig(StringView legacyName) = 0;
/// Look up the legacy config by new name (empty if none).
virtual StringView getLegacy(StringView configName) = 0;
};