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
11class PacketSender;
12class Player;
13class ScreenContext;
15struct PageContent;
16struct SyncedPhotoView;
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 // NOLINTEND
36
37public:
38 // prevent constructor by default
39 BookScreenManager& operator=(BookScreenManager const&);
40 BookScreenManager(BookScreenManager const&);
41 BookScreenManager();
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI ::Core::PathBuffer<::std::string> _getExportTempDir();
47
48 MCAPI void addPageAt(int index, ::PageContent const& page);
49
50 MCAPI float buildExportFiles(
51 ::std::vector<::PageContent> const& pages,
52 ::ScreenContext& context,
53 ::JpegCommentWriter& writer,
54 ::std::function<::std::string(::std::string const&)> profanityFilter
55 );
56
57 MCAPI void deletePage(int index);
58
59 MCAPI void editPage(int index, ::PageContent const& page);
60
61 MCAPI bool finalizeBook(::std::string const& title, ::std::string const& author, ::std::string const& authorXUID);
62
63 MCAPI ::Core::PathBuffer<::std::string> getScreenshotPath(::PageContent const& page);
64
65 MCAPI ::std::string const& getSignedAuthor();
66
67 MCAPI void populatePickPics(::std::vector<::PageContent> const& pages);
68
69 MCAPI void startBookExport();
70
71 MCAPI void swapPages(int page1Index, int page2Index);
72
73 MCAPI float tickBookDownload(::std::vector<::PageContent> const& pages);
74
75 MCAPI void updateLectern(int page);
76 // NOLINTEND
77};
Definition BookScreenManager.h:5
Definition PacketSender.h:17
Definition Player.h:125
Definition ScreenContext.h:5
Definition JpegCommentWriter.h:5
Definition PageContent.h:10
Definition SyncedPhotoView.h:5