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/network/MinecraftPacketIds.h"
7#include "mc/network/packet/Packet.h"
8#include "mc/platform/Result.h"
9
10// auto generated forward declare list
11// clang-format off
12class ActorRuntimeID;
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 // virtual functions
42 // NOLINTBEGIN
43 // vIndex: 1
44 virtual ::MinecraftPacketIds getId() const /*override*/;
45
46 // vIndex: 2
47 virtual ::std::string getName() const /*override*/;
48
49 // vIndex: 4
50 virtual void write(::BinaryStream& stream) const /*override*/;
51
52 // vIndex: 8
53 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
54
55 // vIndex: 0
56 virtual ~NpcRequestPacket() /*override*/;
57 // NOLINTEND
58
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI NpcRequestPacket(
64 ::NpcRequestPacket::RequestType type,
65 ::std::string actions,
66 uchar actionIndex
67 );
68 // NOLINTEND
69
70public:
71 // static functions
72 // NOLINTBEGIN
73 MCAPI static ::NpcRequestPacket requestSetInteractText(::ActorRuntimeID id, ::std::string text);
74
75 MCAPI static ::NpcRequestPacket requestSetName(::ActorRuntimeID id, ::std::string name);
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCAPI void*
82 $ctor(::ActorRuntimeID id, ::NpcRequestPacket::RequestType type, ::std::string actions, uchar actionIndex);
83 // NOLINTEND
84
85public:
86 // destructor thunk
87 // NOLINTBEGIN
88 MCAPI void $dtor();
89 // NOLINTEND
90
91public:
92 // virtual function thunks
93 // NOLINTBEGIN
94 MCAPI ::MinecraftPacketIds $getId() const;
95
96 MCAPI ::std::string $getName() const;
97
98 MCAPI void $write(::BinaryStream& stream) const;
99
100 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCAPI static void** $vftable();
107 // NOLINTEND
108};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:10
Definition NpcRequestPacket.h:17
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8