LeviLamina
Loading...
Searching...
No Matches
CommandMessage.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/server/commands/CommandMessageParams.h"
7#include "mc/server/commands/CommandSelector.h"
8
9// auto generated forward declare list
10// clang-format off
11class Actor;
12class CommandOrigin;
14// clang-format on
15
16class CommandMessage {
17public:
18 // CommandMessage inner types declare
19 // clang-format off
20 struct MessageComponent;
21 // clang-format on
22
23 // CommandMessage inner types define
24 struct MessageComponent {
25 public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 32, ::std::string> string;
29 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CommandSelector<::Actor>>> selection;
30 // NOLINTEND
31
32 public:
33 // prevent constructor by default
34 MessageComponent& operator=(MessageComponent const&);
35 MessageComponent(MessageComponent const&);
36 MessageComponent();
37
38 public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI MessageComponent(::CommandMessage::MessageComponent&& m);
42
43 MCAPI explicit MessageComponent(::std::string&& s);
44
45 MCAPI explicit MessageComponent(::std::unique_ptr<::CommandSelector<::Actor>>&& s);
46 // NOLINTEND
47
48 public:
49 // constructor thunks
50 // NOLINTBEGIN
51 MCAPI void* $ctor(::CommandMessage::MessageComponent&& m);
52
53 MCAPI void* $ctor(::std::string&& s);
54
55 MCAPI void* $ctor(::std::unique_ptr<::CommandSelector<::Actor>>&& s);
56 // NOLINTEND
57 };
58
59public:
60 // member variables
61 // NOLINTBEGIN
62 ::ll::TypedStorage<8, 24, ::std::vector<::CommandMessage::MessageComponent>> mData;
63 ::ll::TypedStorage<1, 1, ::CommandMessageParams const> mParameters;
64 // NOLINTEND
65
66public:
67 // prevent constructor by default
68 CommandMessage() = default;
69
70public:
71 // member functions
72 // NOLINTBEGIN
73 MCAPI explicit CommandMessage(::std::optional<::CommandMessageParams> params);
74
75 MCAPI ::GenerateMessageResult generateMessage(::CommandOrigin const& origin, int maxLength) const;
76
77 MCAPI ~CommandMessage();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void* $ctor(::std::optional<::CommandMessageParams> params);
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCAPI void $dtor();
90 // NOLINTEND
91};
92
93// clang-format off
94template <>
95MCAPI ::ll::type_id_ref Bedrock::typeid_storage_impl<class CommandRegistry, ::CommandMessage>();
96// clang-format on
Definition Actor.h:125
Definition CommandOrigin.h:32
Definition CommandSelector.h:15
Definition CommandMessage.h:24
Definition GenerateMessageResult.h:5