LeviLamina
Loading...
Searching...
No Matches
WorldTemplateManager.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/resources/interface/IWorldTemplateManager.h"
9
10// auto generated forward declare list
11// clang-format off
13class Pack;
16struct PackIdVersion;
18namespace Bedrock::PubSub { class Subscription; }
19namespace Core { class FilePathManager; }
20namespace mce { class UUID; }
21// clang-format on
22
24public:
25 // member variables
26 // NOLINTBEGIN
44 // NOLINTEND
45
46public:
47 // prevent constructor by default
51
52public:
53 // virtual functions
54 // NOLINTBEGIN
55 // vIndex: 0
56 virtual ~WorldTemplateManager() /*override*/;
57
58 // vIndex: 3
59 virtual ::std::vector<::std::unique_ptr<::WorldTemplateInfo>> const& getLocalTemplates() const /*override*/;
60
61 // vIndex: 1
62 virtual ::WorldTemplateInfo const* findInstalledWorldTemplateByUUID(::std::vector<::mce::UUID> const& packUUIDs
63 ) const /*override*/;
64
65 // vIndex: 2
66 virtual ::Bedrock::PubSub::Subscription
67 registerModifiedCallback(::std::function<void(::std::pair<::std::string, bool> const&)> newCallbackFunction
68 ) /*override*/;
69 // NOLINTEND
70
71public:
72 // member functions
73 // NOLINTBEGIN
75 ::PackManifestFactory& packManifestFactory,
76 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
77 ::PackSourceFactory& packSourceFactory,
78 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& filePathManager,
79 bool initAsync
80 );
81
82 MCAPI void _initialize();
83
84 MCAPI void _initializePackSources();
85
86 MCAPI void _onDiscoverWorldTemplate(::Pack const& pack);
87
88 MCAPI ::WorldTemplateInfo const* findInstalledWorldTemplate(::PackIdVersion const& packIdentityToFind) const;
89
90 MCAPI ::Core::PathBuffer<::std::string> getWorldTemplatesPath() const;
91 // NOLINTEND
92
93public:
94 // constructor thunks
95 // NOLINTBEGIN
96 MCAPI void* $ctor(
97 ::PackManifestFactory& packManifestFactory,
98 ::Bedrock::NotNullNonOwnerPtr<::IContentKeyProvider const> const& keyProvider,
99 ::PackSourceFactory& packSourceFactory,
100 ::Bedrock::NotNullNonOwnerPtr<::Core::FilePathManager> const& filePathManager,
101 bool initAsync
102 );
103 // NOLINTEND
104
105public:
106 // destructor thunk
107 // NOLINTBEGIN
108 MCAPI void $dtor();
109 // NOLINTEND
110
111public:
112 // virtual function thunks
113 // NOLINTBEGIN
114 MCFOLD ::std::vector<::std::unique_ptr<::WorldTemplateInfo>> const& $getLocalTemplates() const;
115
116 MCAPI ::WorldTemplateInfo const* $findInstalledWorldTemplateByUUID(::std::vector<::mce::UUID> const& packUUIDs
117 ) const;
118
119 MCAPI ::Bedrock::PubSub::Subscription
120 $registerModifiedCallback(::std::function<void(::std::pair<::std::string, bool> const&)> newCallbackFunction);
121 // NOLINTEND
122
123public:
124 // vftables
125 // NOLINTBEGIN
126 MCAPI static void** $vftable();
127 // NOLINTEND
128};
Definition IContentKeyProvider.h:13
Definition IWorldTemplateManager.h:15
Definition PackManifestFactory.h:20
Definition PackSourceFactory.h:27
Definition Pack.h:26
Definition WorldTemplateManager.h:23
Definition PackIdVersion.h:14
Definition WorldTemplateInfo.h:10
Definition Alias.h:14