LeviLamina
Loading...
Searching...
No Matches
CommandRequestPacketPayload.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/common/SubClientId.h"
7#include "mc/deps/core/utility/NonOwnerPointer.h"
8#include "mc/server/commands/CommandOriginData.h"
9#include "mc/server/commands/CurrentCmdVersion.h"
10
11// auto generated forward declare list
12// clang-format off
13class CommandContext;
14class ILevel;
16// clang-format on
17
18struct CommandRequestPacketPayload {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 32, ::std::string> mCommand;
23 ::ll::TypedStorage<8, 64, ::CommandOriginData> mOrigin;
24 ::ll::TypedStorage<4, 4, ::CurrentCmdVersion> mVersion;
25 ::ll::TypedStorage<1, 1, bool> mInternalSource;
26 // NOLINTEND
27
28public:
29 // prevent constructor by default
30 CommandRequestPacketPayload();
31
32public:
33 // member functions
34 // NOLINTBEGIN
35 MCAPI CommandRequestPacketPayload(::CommandContext& context, bool internalSource);
36
37 MCAPI ::std::unique_ptr<::CommandContext> createCommandContext(
38 ::NetworkIdentifier const& source,
40 ::SubClientId senderSubId
41 ) const;
42
43 MCAPI ~CommandRequestPacketPayload();
44 // NOLINTEND
45
46public:
47 // constructor thunks
48 // NOLINTBEGIN
49 MCAPI void* $ctor(::CommandContext& context, bool internalSource);
50 // NOLINTEND
51
52public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCAPI void $dtor();
56 // NOLINTEND
57};
Definition NonOwnerPointer.h:9
Definition CommandContext.h:10
Definition ILevel.h:219
Definition NetworkIdentifier.h:10
Definition context.h:5