Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SetTitlePacketPayload.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5struct SetTitlePacketPayload {
6public:
7 // SetTitlePacketPayload inner types define
8 enum class TitleType : int {
9 Clear = 0,
10 Reset = 1,
11 Title = 2,
12 Subtitle = 3,
13 Actionbar = 4,
14 Times = 5,
15 TitleTextObject = 6,
16 SubtitleTextObject = 7,
17 ActionbarTextObject = 8,
18 };
19
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<4, 4, ::SetTitlePacketPayload::TitleType> mType;
24 ::ll::TypedStorage<8, 32, ::std::string> mTitleText;
25 ::ll::TypedStorage<8, 32, ::std::string> mFilteredTitleText;
26 ::ll::TypedStorage<4, 4, int> mFadeInTime;
27 ::ll::TypedStorage<4, 4, int> mStayTime;
28 ::ll::TypedStorage<4, 4, int> mFadeOutTime;
29 ::ll::TypedStorage<8, 32, ::std::string> mXuid;
30 ::ll::TypedStorage<8, 32, ::std::string> mPlatformOnlineId;
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
35 SetTitlePacketPayload& operator=(SetTitlePacketPayload const&);
36 SetTitlePacketPayload();
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI SetTitlePacketPayload(::SetTitlePacketPayload const&);
42
43 MCAPI SetTitlePacketPayload(
44 ::SetTitlePacketPayload::TitleType type,
45 ::std::string const& titleText,
46 ::std::optional<::std::string> filteredTitleText
47 );
48
49 MCNAPI ::SetTitlePacketPayload& operator=(::SetTitlePacketPayload&&);
50
51 MCAPI ~SetTitlePacketPayload();
52 // NOLINTEND
53
54public:
55 // constructor thunks
56 // NOLINTBEGIN
57 MCAPI void* $ctor(::SetTitlePacketPayload const&);
58
59 MCAPI void* $ctor(
60 ::SetTitlePacketPayload::TitleType type,
61 ::std::string const& titleText,
62 ::std::optional<::std::string> filteredTitleText
63 );
64 // NOLINTEND
65
66public:
67 // destructor thunk
68 // NOLINTBEGIN
69 MCAPI void $dtor();
70 // NOLINTEND
71};
MCAPI::SetTitlePacketPayload & operator=(::SetTitlePacketPayload &&)