Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
LocalLocalizationDictionary.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/locale/I18nObserver.h"
7#include "mc/util/localization/ILocalizationDictionary.h"
8
9// auto generated forward declare list
10// clang-format off
11class Localization;
12class PackManifest;
13namespace Core { class Path; }
14// clang-format on
15
16class LocalLocalizationDictionary : public ::ILocalizationDictionary, public ::I18nObserver {
17public:
18 // member variables
19 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 LocalLocalizationDictionary& operator=(LocalLocalizationDictionary const&);
28 LocalLocalizationDictionary(LocalLocalizationDictionary const&);
29 LocalLocalizationDictionary();
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34#ifdef LL_PLAT_S
35 virtual ~LocalLocalizationDictionary() /*override*/ = default;
36#else // LL_PLAT_C
37 virtual ~LocalLocalizationDictionary() /*override*/;
38#endif
39
40 virtual ::std::string getLocString(::std::string const& locKey) const /*override*/;
41
42 virtual bool isLocalizationReady() const /*override*/;
43
44#ifdef LL_PLAT_S
45 virtual void onLanguageChanged(::std::string const&, bool) /*override*/;
46#else // LL_PLAT_C
47 virtual void onLanguageChanged(::std::string const& locCode, bool) /*override*/;
48#endif
49
50 virtual void onLanguageKeywordsLoadedFromPack(::PackManifest const&) /*override*/;
51
52 virtual void onLanguagesLoaded() /*override*/;
53
54 virtual void _updateLoc() /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60#ifdef LL_PLAT_C
61 MCNAPI explicit LocalLocalizationDictionary(::Core::Path const& locFilePath);
62
63 MCNAPI bool _appendLoc(::std::string const& locCode, ::Localization& localizationObjToAppendLoc);
64
65 MCNAPI void _initialize();
66#endif
67 // NOLINTEND
68
69public:
70 // constructor thunks
71 // NOLINTBEGIN
72#ifdef LL_PLAT_C
73 MCNAPI void* $ctor(::Core::Path const& locFilePath);
74#endif
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80#ifdef LL_PLAT_C
81 MCNAPI void $dtor();
82#endif
83 // NOLINTEND
84
85public:
86 // virtual function thunks
87 // NOLINTBEGIN
88#ifdef LL_PLAT_C
89 MCNAPI ::std::string $getLocString(::std::string const& locKey) const;
90
91 MCNAPI bool $isLocalizationReady() const;
92
93 MCNAPI void $onLanguageChanged(::std::string const& locCode, bool);
94
95 MCNAPI void $onLanguageKeywordsLoadedFromPack(::PackManifest const&);
96
97 MCNAPI void $onLanguagesLoaded();
98
99 MCNAPI void $_updateLoc();
100#endif
101
102
103 // NOLINTEND
104
105public:
106 // vftables
107 // NOLINTBEGIN
109
110 MCNAPI static void** $vftableForI18nObserver();
111 // NOLINTEND
112};
Definition Path.h:10
Definition I18nObserver.h:13
static MCAPI void ** $vftableForILocalizationDictionary()
static MCAPI void ** $vftableForI18nObserver()
Definition Localization.h:15
Definition PackManifest.h:39
Definition Alias.h:14