LeviLamina
Loading...
Searching...
No Matches
NpcRequestPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorRuntimeID.h"
7#include "mc/network/MinecraftPacketIds.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 NpcRequestPacket : public ::Packet {
18public:
19 // NpcRequestPacket inner types define
20 enum class RequestType : uchar {
21 SetActions = 0,
22 ExecuteAction = 1,
23 ExecuteClosingCommands = 2,
24 SetName = 3,
25 SetSkin = 4,
26 SetInteractText = 5,
27 ExecuteOpeningCommands = 6,
28 };
29
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mId;
34 ::ll::TypedStorage<1, 1, ::NpcRequestPacket::RequestType> mType;
35 ::ll::TypedStorage<8, 32, ::std::string> mActions;
36 ::ll::TypedStorage<1, 1, uchar> mActionIndex;
37 ::ll::TypedStorage<8, 32, ::std::string> mSceneName;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
43
44public:
45 // virtual functions
46 // NOLINTBEGIN
47 // vIndex: 1
48 virtual ::MinecraftPacketIds getId() const /*override*/;
49
50 // vIndex: 2
51 virtual ::std::string getName() const /*override*/;
52
53 // vIndex: 4
54 virtual void write(::BinaryStream& stream) const /*override*/;
55
56 // vIndex: 8
57 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
58
59 // vIndex: 0
60 virtual ~NpcRequestPacket() /*override*/;
61 // NOLINTEND
62
63public:
64 // member functions
65 // NOLINTBEGIN
66 MCAPI NpcRequestPacket(
68 ::NpcRequestPacket::RequestType type,
69 ::std::string actions,
70 uchar actionIndex
71 );
72 // NOLINTEND
73
74public:
75 // static functions
76 // NOLINTBEGIN
77 MCAPI static ::NpcRequestPacket requestSetInteractText(::ActorRuntimeID id, ::std::string text);
78
79 MCAPI static ::NpcRequestPacket requestSetName(::ActorRuntimeID id, ::std::string name);
80 // NOLINTEND
81
82public:
83 // constructor thunks
84 // NOLINTBEGIN
85 MCAPI void*
86 $ctor(::ActorRuntimeID id, ::NpcRequestPacket::RequestType type, ::std::string actions, uchar actionIndex);
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCAPI void $dtor();
93 // NOLINTEND
94
95public:
96 // virtual function thunks
97 // NOLINTBEGIN
98 MCAPI ::MinecraftPacketIds $getId() const;
99
100 MCAPI ::std::string $getName() const;
101
102 MCAPI void $write(::BinaryStream& stream) const;
103
104 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
105 // NOLINTEND
106
107public:
108 // vftables
109 // NOLINTBEGIN
110 MCNAPI static void** $vftable();
111 // NOLINTEND
112};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition NpcRequestPacket.h:17
static MCAPI void ** $vftable()
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8