LeviLamina
Loading...
Searching...
No Matches
ImportContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/resources/ImportContextType.h"
7#include "mc/client/resources/ImportFailure.h"
8#include "mc/client/resources/ImportSuccess.h"
9#include "mc/deps/core/file/PathBuffer.h"
10
11// auto generated forward declare list
12// clang-format off
13class PackManifest;
14class PackReport;
15class ResourcePack;
16namespace Core { class Path; }
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 ImportContext& operator=(ImportContext const&);
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 0
41 virtual ~ImportContext() = default;
42
43 // vIndex: 1
44 virtual ::Core::PathBuffer<::std::string> generatePackFolderName(::PackManifest const&) = 0;
45
46 // vIndex: 2
47 virtual ::Core::PathBuffer<::std::string> getBehaviorPacksPath() const = 0;
48
49 // vIndex: 3
50 virtual ::Core::PathBuffer<::std::string> getResourcePacksPath() const = 0;
51
52 // vIndex: 4
53 virtual ::Core::PathBuffer<::std::string> getWorldTemplatePath() const = 0;
54
55 // vIndex: 5
56 virtual ::Core::PathBuffer<::std::string> getSkinPacksPath() const = 0;
57
58 // vIndex: 6
59 virtual ::Core::PathBuffer<::std::string> getPersonaPath() const = 0;
60
61 // vIndex: 7
62 virtual bool allowOverwrite() const = 0;
63
64 // vIndex: 8
65 virtual bool shouldUnzipToDestination(::PackManifest const&) const = 0;
66
67 // vIndex: 9
68 virtual bool importAsFlatFile(::PackManifest const&) const = 0;
69
70 // vIndex: 10
71 virtual ::ImportContextType getImportContextType() const = 0;
72
73 // vIndex: 11
74 virtual void notifyEarlyImportStarted(bool) = 0;
75
76 // vIndex: 12
77 virtual void notifyImportStarted(::PackManifest const&) = 0;
78
79 // vIndex: 13
80 virtual void notifyMultiImportStarted(int) = 0;
81
82 // vIndex: 14
83 virtual void
84 notifyImportSucceeded(::ResourcePack const*, ::ImportSuccess, ::PackManifest const&, ::PackReport const&, ::Core::Path const&) = 0;
85
86 // vIndex: 15
87 virtual void notifyImportFailed(::ImportFailure, ::PackManifest const*, ::PackReport*, ::Core::Path const&) = 0;
88
89 // vIndex: 16
90 virtual bool modifyManifest(::PackManifest&) = 0;
91 // NOLINTEND
92
93public:
94 // destructor thunk
95 // NOLINTBEGIN
96
97 // NOLINTEND
98
99public:
100 // virtual function thunks
101 // NOLINTBEGIN
102
103 // NOLINTEND
104};
Definition Path.h:15
Definition ImportContext.h:19
Definition PackManifest.h:19
Definition PackReport.h:17
Definition Path.h:16
Definition ResourcePack.h:25
Definition Alias.h:14