LeviLamina
Loading...
Searching...
No Matches
BookScreenManager.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/world/level/BlockPos.h"
8
9// auto generated forward declare list
10// clang-format off
12class PacketSender;
13class Player;
14class ScreenContext;
15class SyncedPhotoView;
16struct PageContent;
17// clang-format on
18
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
24 ::ll::TypedStorage<4, 16, ::std::optional<::BlockPos>> mLecternPos;
25 ::ll::TypedStorage<4, 4, int> mBookSlot;
26 ::ll::TypedStorage<8, 8, ::PacketSender&> mPacketSender;
27 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::SyncedPhotoView>> mPhotoView;
28 ::ll::TypedStorage<8, 24, ::std::vector<::Core::PathBuffer<::std::string>>> mPickPictures;
29 ::ll::TypedStorage<8, 24, ::std::vector<::Core::PathBuffer<::std::string>>> mPickPicturesInventory;
30 ::ll::TypedStorage<8, 24, ::std::vector<::Core::PathBuffer<::std::string>>> mExportFiles;
31 ::ll::TypedStorage<8, 8, uint64> mCurExportPage;
32 ::ll::TypedStorage<8, 8, uint64> mPhotoItemsLimitPage;
33 ::ll::TypedStorage<1, 1, bool> mEdited;
34 ::ll::TypedStorage<1, 1, bool> mIsEdu;
35 ::ll::TypedStorage<1, 1, bool> hasExportedFirstPhoto;
36 // NOLINTEND
37
38public:
39 // prevent constructor by default
40 BookScreenManager& operator=(BookScreenManager const&);
41 BookScreenManager(BookScreenManager const&);
42 BookScreenManager();
43
44public:
45 // member functions
46 // NOLINTBEGIN
47 MCAPI ::Core::PathBuffer<::std::string> _getExportTempDir();
48
49 MCAPI void addPageAt(int index, ::PageContent const& page);
50
51 MCAPI float buildExportFiles(
52 ::std::vector<::PageContent> const& pages,
53 ::ScreenContext& context,
54 ::JpegCommentWriter& writer,
55 ::std::function<::std::string(::std::string const&)> profanityFilter
56 );
57
58 MCAPI void deletePage(int index);
59
60 MCAPI void editPage(int index, ::PageContent const& page);
61
62 MCAPI bool finalizeBook(::std::string const& title, ::std::string const& author, ::std::string const& authorXUID);
63
64 MCAPI ::Core::PathBuffer<::std::string> getScreenshotPath(::PageContent const& page);
65
66 MCAPI ::std::string const& getSignedAuthor();
67
68 MCAPI void populatePickPics(::std::vector<::PageContent> const& pages);
69
70 MCAPI void startBookExport();
71
72 MCAPI void swapPages(int page1Index, int page2Index);
73
74 MCAPI float tickBookDownload(::std::vector<::PageContent> const& pages);
75
76 MCAPI void updateLectern(int page);
77 // NOLINTEND
78};
Definition BookScreenManager.h:5
Definition JpegCommentWriter.h:5
Definition PacketSender.h:17
Definition Player.h:129
Definition ScreenContext.h:5
Definition SyncedPhotoView.h:5
Definition PageContent.h:10