3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/resources/ImportContextType.h"
7#include "mc/client/resources/ImportFailure.h"
8#include "mc/client/resources/ImportMode.h"
9#include "mc/client/resources/ImportSuccess.h"
10#include "mc/deps/core/file/PathBuffer.h"
11#include "mc/resources/core/zip_utils/ZipProgressList.h"
18namespace Core {
class Path; }
25 ::ll::TypedStorage<8, 104, ::Core::ZipUtils::ZipProgressList> mZipProgressList;
26 ::ll::TypedStorage<8, 32, ::std::string> mSerializedGlobalStackPreUpdate;
27 ::ll::TypedStorage<1, 1, bool> mSuppressImportStartedToast;
28 ::ll::TypedStorage<1, 1, bool> mSuppressImportFinishedToast;
29 ::ll::TypedStorage<1, 1, bool> mSuppressSelfToasts;
30 ::ll::TypedStorage<1, 1, bool> mSuppressImportProgressScreen;
36 virtual ~ImportContext() =
default;
38 virtual ::Core::PathBuffer<::std::string> generatePackFolderName(::PackManifest
const& manifest) = 0;
40 virtual ::Core::PathBuffer<::std::string> getBehaviorPacksPath()
const = 0;
42 virtual ::Core::PathBuffer<::std::string> getResourcePacksPath()
const = 0;
44 virtual ::Core::PathBuffer<::std::string> getWorldTemplatePath()
const = 0;
46 virtual ::Core::PathBuffer<::std::string> getSkinPacksPath()
const = 0;
48 virtual ::Core::PathBuffer<::std::string> getPersonaPath()
const = 0;
50 virtual ::ImportMode getImportMode()
const = 0;
52 virtual bool shouldUnzipToDestination(::PackManifest
const& manifest)
const = 0;
54 virtual bool importAsFlatFile(::PackManifest
const& manifest)
const = 0;
56 virtual ::ImportContextType getImportContextType()
const = 0;
58 virtual void notifyEarlyImportStarted(
bool isWorld) = 0;
60 virtual void notifyImportStarted(::PackManifest
const& manifest) = 0;
62 virtual void notifyMultiImportStarted(
int pendingImportCount) = 0;
64 virtual void notifyImportSucceeded(
65 ::ResourcePack
const* pack,
66 ::ImportSuccess success,
67 ::PackManifest
const& manifest,
68 ::PackReport
const& packReport,
69 ::Core::Path
const& packOutputFolder
72 virtual void notifyImportFailed(
73 ::ImportFailure failure,
74 ::PackManifest
const* manifest,
76 ::Core::Path
const& contentPath
79 virtual bool modifyManifest(::PackManifest& manifest) = 0;
Definition ImportContext.h:5
Definition PackManifest.h:38
Definition PackReport.h:16
Definition ResourcePack.h:24