LeviLamina
Loading...
Searching...
No Matches
TransferPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/renderer/rendergraph/Packet.h"
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12class BinaryStream;
14// clang-format on
15
16class TransferPacket : public ::Packet {
17public:
18 // member variables
19 // NOLINTBEGIN
20 ::ll::TypedStorage<8, 32, ::std::string> mDestination;
21 ::ll::TypedStorage<2, 2, ushort> mDestinationPort;
22 ::ll::TypedStorage<1, 1, bool> mReloadWorld;
23 // NOLINTEND
24
25public:
26 TransferPacket(std::string const& dest, ushort port, bool reloadWorld = false)
27 : mDestination(dest),
28 mDestinationPort(port),
29 mReloadWorld(reloadWorld) {}
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 ~TransferPacket() /*override*/;
48 // NOLINTEND
49
50public:
51 // destructor thunk
52 // NOLINTBEGIN
53 MCFOLD void $dtor();
54 // NOLINTEND
55
56public:
57 // virtual function thunks
58 // NOLINTBEGIN
59 MCAPI ::MinecraftPacketIds $getId() const;
60
61 MCAPI ::std::string $getName() const;
62
63 MCAPI void $write(::BinaryStream& stream) const;
64
65 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
66 // NOLINTEND
67
68public:
69 // vftables
70 // NOLINTBEGIN
71 MCNAPI static void** $vftable();
72 // NOLINTEND
73};
Definition BinaryStream.h:10
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition TransferPacket.h:16
static MCAPI void ** $vftable()