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#ifdef LL_PLAT_S
41 virtual ::std::string getLocString(::std::string const&) const /*override*/;
42#else // LL_PLAT_C
43 virtual ::std::string getLocString(::std::string const& locKey) const /*override*/;
44#endif
45
46 virtual bool isLocalizationReady() const /*override*/;
47
48#ifdef LL_PLAT_S
49 virtual void onLanguageChanged(::std::string const&, bool) /*override*/;
50#else // LL_PLAT_C
51 virtual void onLanguageChanged(::std::string const& locCode, bool) /*override*/;
52#endif
53
54 virtual void onLanguageKeywordsLoadedFromPack(::PackManifest const&) /*override*/;
55
56 virtual void onLanguagesLoaded() /*override*/;
57
58 virtual void _updateLoc() /*override*/;
59 // NOLINTEND
60
61public:
62 // member functions
63 // NOLINTBEGIN
64#ifdef LL_PLAT_C
65 MCNAPI explicit LocalLocalizationDictionary(::Core::Path const& locFilePath);
66
67 MCNAPI bool _appendLoc(::std::string const& locCode, ::Localization& localizationObjToAppendLoc);
68
69 MCNAPI void _initialize();
70#endif
71 // NOLINTEND
72
73public:
74 // constructor thunks
75 // NOLINTBEGIN
76#ifdef LL_PLAT_C
77 MCNAPI void* $ctor(::Core::Path const& locFilePath);
78#endif
79 // NOLINTEND
80
81public:
82 // destructor thunk
83 // NOLINTBEGIN
84 MCNAPI void $dtor();
85 // NOLINTEND
86
87public:
88 // virtual function thunks
89 // NOLINTBEGIN
90#ifdef LL_PLAT_C
91 MCNAPI ::std::string $getLocString(::std::string const& locKey) const;
92
93 MCNAPI bool $isLocalizationReady() const;
94
95 MCNAPI void $onLanguageChanged(::std::string const& locCode, bool);
96
97 MCNAPI void $onLanguageKeywordsLoadedFromPack(::PackManifest const&);
98
99 MCNAPI void $onLanguagesLoaded();
100
101 MCNAPI void $_updateLoc();
102#endif
103
104
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
111
112 MCNAPI static void** $vftableForI18nObserver();
113 // NOLINTEND
114};
Definition Path.h:12
Definition I18nObserver.h:14
static MCAPI void ** $vftableForILocalizationDictionary()
static MCAPI void ** $vftableForI18nObserver()
Definition Localization.h:15
Definition PackManifest.h:38
Definition Alias.h:14