LeviLamina
Loading...
Searching...
No Matches
BakeTool.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7
8// auto generated forward declare list
9// clang-format off
11namespace Bedrock::Resources { struct BakeConfig; }
12namespace Bedrock::Resources::Archive { class Builder; }
13namespace Core { class Path; }
14namespace Core { class PathView; }
15// clang-format on
16
17namespace Bedrock::Resources {
18
19class BakeTool {
20public:
21 // member variables
22 // NOLINTBEGIN
27 // NOLINTEND
28
29public:
30 // prevent constructor by default
31 BakeTool& operator=(BakeTool const&);
32 BakeTool(BakeTool const&);
33 BakeTool();
34
35public:
36 // member functions
37 // NOLINTBEGIN
38#ifdef LL_PLAT_S
39 MCNAPI explicit BakeTool(::Bedrock::Resources::BakeConfig config);
40
41 MCNAPI int bake();
42
43 MCNAPI int bakeFilesInFolder(::Core::PathView srcPath, ::Core::PathView dstPath, ::Core::PathView dstArchivePath);
44
45 MCNAPI int bakeSinglePack(::Core::PathView packRoot, ::Core::PathView destPath);
46
47 MCNAPI void copyLooseFiles(::Core::PathView packRoot, ::Core::PathView destPath);
48
49 MCNAPI ::Bedrock::Result<void> copyRegularFile(::Core::PathView sourcePath, ::Core::PathView destPath);
50
51 MCNAPI void optimizeFilesWithArchive(
53 ::Core::PathView dstLoosePath,
54 ::std::vector<::Core::Path> const& gatheredFiles,
55 bool doCopy,
56 bool skipOptimization,
57 ::std::vector<::Core::Path>* outFullyArchivedFiles
58 );
59
60 MCNAPI void outputLog() const;
61
62 MCNAPI bool shouldCopyLooseSource(::Core::PathView filePath);
63
64 MCNAPI int unpackBrarchive();
65
66 MCNAPI int unpackBrarchiveSinglePack(::Core::PathView packRoot, ::Core::PathView destPath);
67
68 MCNAPI int unpackBrpak();
69
70 MCNAPI int unpackBrpakSinglePack(::Core::PathView packRoot, ::Core::PathView destPath);
71
72 MCNAPI void writeArchive(::Bedrock::Resources::Archive::Builder& builder, ::Core::PathView dstFile);
73#endif
74 // NOLINTEND
75
76public:
77 // static variables
78 // NOLINTBEGIN
79 MCNAPI static ::SemVersionConstant const& PACK_OPTIMIZATION_VERSION();
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85#ifdef LL_PLAT_S
86 MCNAPI void* $ctor(::Bedrock::Resources::BakeConfig config);
87#endif
88 // NOLINTEND
89};
90
91} // namespace Bedrock::Resources
static MCAPI ::SemVersionConstant const & PACK_OPTIMIZATION_VERSION()
Definition PathView.h:19
Definition Path.h:11
Definition SemVersionConstant.h:8
Definition BakeConfig.h:7
Definition Alias.h:14