LeviLamina
Loading...
Searching...
No Matches
PageContent.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class CompoundTag;
8// clang-format on
9
10struct PageContent {
11public:
12 // PageContent inner types define
13 enum class PageType : uchar {
14 Text = 0,
15 Photo = 1,
16 Count = 2,
17 };
18
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 32, ::std::string> mText;
23 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredText;
24 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mParsedFilteredText;
25 ::ll::TypedStorage<8, 32, ::std::string> mParsedText;
26 ::ll::TypedStorage<8, 32, ::std::string> mPhotoName;
27 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredPhotoName;
28 // NOLINTEND
29
30public:
31 // prevent constructor by default
32 PageContent();
33
34public:
35 // member functions
36 // NOLINTBEGIN
37 MCAPI PageContent(::PageContent const&);
38
39 MCAPI PageContent(::std::string nText, ::std::optional<::std::string> nFilteredText);
40
41 MCAPI ::std::unique_ptr<::CompoundTag> createTag() const;
42
43#ifdef LL_PLAT_C
44 MCAPI ::PageContent::PageType getType() const;
45#endif
46
47 MCAPI ::PageContent& operator=(::PageContent&&);
48
49 MCAPI ::PageContent& operator=(::PageContent const&);
50
51 MCAPI ~PageContent();
52 // NOLINTEND
53
54public:
55 // static functions
56 // NOLINTBEGIN
57 MCAPI static ::PageContent read(::CompoundTag const& tag);
58
59 MCAPI static void write(::PageContent const& page, ::CompoundTag& tag);
60 // NOLINTEND
61
62public:
63 // static variables
64 // NOLINTBEGIN
65 MCAPI static ::PageContent const& BLANK_PAGE();
66 // NOLINTEND
67
68public:
69 // constructor thunks
70 // NOLINTBEGIN
71 MCAPI void* $ctor(::PageContent const&);
72
73 MCAPI void* $ctor(::std::string nText, ::std::optional<::std::string> nFilteredText);
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCAPI void $dtor();
80 // NOLINTEND
81};
Definition CompoundTag.h:23