LeviLamina
Loading...
Searching...
No Matches
NpcDialoguePacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/legacy/ActorUniqueID.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;
16// clang-format on
17
19public:
20 // NpcDialoguePacket inner types define
21 enum class NpcDialogueActionType : int {
22 Open = 0,
23 Close = 1,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
29 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mNpcId;
30 ::ll::TypedStorage<4, 4, ::NpcDialoguePacket::NpcDialogueActionType> mNpcDialogueActionType;
31 ::ll::TypedStorage<8, 32, ::std::string> mDialogue;
32 ::ll::TypedStorage<8, 32, ::std::string> mSceneName;
33 ::ll::TypedStorage<8, 32, ::std::string> mNpcName;
34 ::ll::TypedStorage<8, 32, ::std::string> mActionJSON;
35 // NOLINTEND
36
37public:
38 // prevent constructor by default
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 // vIndex: 1
45 virtual ::MinecraftPacketIds getId() const /*override*/;
46
47 // vIndex: 2
48 virtual ::std::string getName() const /*override*/;
49
50 // vIndex: 4
51 virtual void write(::BinaryStream& stream) const /*override*/;
52
53 // vIndex: 8
54 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
55
56 // vIndex: 0
57 virtual ~NpcDialoguePacket() /*override*/;
58 // NOLINTEND
59
60public:
61 // member functions
62 // NOLINTBEGIN
63 MCAPI explicit NpcDialoguePacket(::ActorUniqueID npcID);
64
65 MCAPI ::Bedrock::Result<void> _verifyJson(::std::string const& actionJSON) const;
66 // NOLINTEND
67
68public:
69 // static functions
70 // NOLINTBEGIN
71 MCAPI static bool initializePacket(
72 ::NpcDialoguePacket& outPacket,
73 ::NpcDialogueStorage const* storage,
74 ::std::string const& sceneName
75 );
76 // NOLINTEND
77
78public:
79 // static variables
80 // NOLINTBEGIN
81 MCAPI static uint64 const& MAX_NUM_ACTIONS();
82 // NOLINTEND
83
84public:
85 // constructor thunks
86 // NOLINTBEGIN
87 MCAPI void* $ctor(::ActorUniqueID npcID);
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCAPI void $dtor();
94 // NOLINTEND
95
96public:
97 // virtual function thunks
98 // NOLINTBEGIN
99 MCAPI ::MinecraftPacketIds $getId() const;
100
101 MCAPI ::std::string $getName() const;
102
103 MCAPI void $write(::BinaryStream& stream) const;
104
105 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
106 // NOLINTEND
107
108public:
109 // vftables
110 // NOLINTBEGIN
111 MCNAPI static void** $vftable();
112 // NOLINTEND
113};
Definition BinaryStream.h:10
Definition NpcDialoguePacket.h:18
static MCAPI void ** $vftable()
Definition NpcDialogueStorage.h:14
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition ActorUniqueID.h:5