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& operator=(::PageContent&&);
45#endif
46
47 MCAPI ::PageContent& operator=(::PageContent const&);
48
49 MCAPI ~PageContent();
50 // NOLINTEND
51
52public:
53 // static functions
54 // NOLINTBEGIN
55 MCAPI static ::PageContent read(::CompoundTag const& tag);
56
57 MCAPI static void write(::PageContent const& page, ::CompoundTag& tag);
58 // NOLINTEND
59
60public:
61 // static variables
62 // NOLINTBEGIN
63 MCAPI static ::PageContent const& BLANK_PAGE();
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69 MCAPI void* $ctor(::PageContent const&);
70
71 MCAPI void* $ctor(::std::string nText, ::std::optional<::std::string> nFilteredText);
72 // NOLINTEND
73
74public:
75 // destructor thunk
76 // NOLINTBEGIN
77 MCAPI void $dtor();
78 // NOLINTEND
79};
Definition CompoundTag.h:18