LeviLamina
Loading...
Searching...
No Matches
DisconnectPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/network/MinecraftPacketIds.h"
7#include "mc/network/connection/DisconnectFailReason.h"
8#include "mc/network/packet/Packet.h"
9#include "mc/platform/Result.h"
10
11// auto generated forward declare list
12// clang-format off
13class BinaryStream;
15// clang-format on
16
17class DisconnectPacket : public ::Packet {
18public:
19 // member variables
20 // NOLINTBEGIN
21 ::ll::TypedStorage<1, 1, bool> mSkipMessage;
22 ::ll::TypedStorage<8, 32, ::std::string> mMessage;
23 ::ll::TypedStorage<8, 40, ::std::optional<::std::string>> mFilteredMessage;
24 ::ll::TypedStorage<4, 4, ::Connection::DisconnectFailReason> mReason;
25 // NOLINTEND
26
27public:
28 // prevent constructor by default
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 // vIndex: 1
35 virtual ::MinecraftPacketIds getId() const /*override*/;
36
37 // vIndex: 2
38 virtual ::std::string getName() const /*override*/;
39
40 // vIndex: 4
41 virtual void write(::BinaryStream& stream) const /*override*/;
42
43 // vIndex: 8
44 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
45
46 // vIndex: 0
47 virtual ~DisconnectPacket() /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI DisconnectPacket(
54 ::Connection::DisconnectFailReason reason,
55 ::std::string const& message,
56 ::std::optional<::std::string> filteredMessage,
57 bool skipMessage
58 );
59 // NOLINTEND
60
61public:
62 // constructor thunks
63 // NOLINTBEGIN
64 MCAPI void* $ctor(
65 ::Connection::DisconnectFailReason reason,
66 ::std::string const& message,
67 ::std::optional<::std::string> filteredMessage,
68 bool skipMessage
69 );
70 // NOLINTEND
71
72public:
73 // destructor thunk
74 // NOLINTBEGIN
75 MCAPI void $dtor();
76 // NOLINTEND
77
78public:
79 // virtual function thunks
80 // NOLINTBEGIN
81 MCFOLD ::MinecraftPacketIds $getId() const;
82
83 MCAPI ::std::string $getName() const;
84
85 MCAPI void $write(::BinaryStream& stream) const;
86
87 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
88 // NOLINTEND
89
90public:
91 // vftables
92 // NOLINTBEGIN
93 MCNAPI static void** $vftable();
94 // NOLINTEND
95};
Definition BinaryStream.h:10
Definition DisconnectPacket.h:17
static MCAPI void ** $vftable()
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8