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/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 BinaryStream;
15struct ActorUniqueID;
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 // virtual functions
39 // NOLINTBEGIN
40 // vIndex: 1
41 virtual ::MinecraftPacketIds getId() const /*override*/;
42
43 // vIndex: 2
44 virtual ::std::string getName() const /*override*/;
45
46 // vIndex: 4
47 virtual void write(::BinaryStream& stream) const /*override*/;
48
49 // vIndex: 8
50 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
51
52 // vIndex: 0
53 virtual ~NpcDialoguePacket() /*override*/;
54 // NOLINTEND
55
56public:
57 // member functions
58 // NOLINTBEGIN
59 MCAPI explicit NpcDialoguePacket(::ActorUniqueID npcID);
60
61 MCAPI ::Bedrock::Result<void> _verifyJson(::std::string const& actionJSON) const;
62 // NOLINTEND
63
64public:
65 // static functions
66 // NOLINTBEGIN
67 MCAPI static bool initializePacket(
68 ::NpcDialoguePacket& outPacket,
69 ::NpcDialogueStorage const* storage,
70 ::std::string const& sceneName
71 );
72 // NOLINTEND
73
74public:
75 // static variables
76 // NOLINTBEGIN
77 MCAPI static uint64 const& MAX_NUM_ACTIONS();
78 // NOLINTEND
79
80public:
81 // constructor thunks
82 // NOLINTBEGIN
83 MCAPI void* $ctor(::ActorUniqueID npcID);
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCAPI void $dtor();
90 // NOLINTEND
91
92public:
93 // virtual function thunks
94 // NOLINTBEGIN
95 MCAPI ::MinecraftPacketIds $getId() const;
96
97 MCAPI ::std::string $getName() const;
98
99 MCAPI void $write(::BinaryStream& stream) const;
100
101 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
102 // NOLINTEND
103
104public:
105 // vftables
106 // NOLINTBEGIN
107 MCAPI static void** $vftable();
108 // NOLINTEND
109};
Definition BinaryStream.h:10
Definition NpcDialoguePacket.h:18
Definition NpcDialogueStorage.h:14
Definition Packet.h:26
Definition ReadOnlyBinaryStream.h:8
Definition ActorUniqueID.h:5