LeviLamina
Loading...
Searching...
No Matches
UpdateAbilitiesPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/world/actor/SerializedAbilitiesData.h"
5
6// auto generated inclusion list
7#include "mc/network/MinecraftPacketIds.h"
8#include "mc/network/Packet.h"
9#include "mc/platform/Result.h"
10#include "mc/world/actor/SerializedAbilitiesData.h"
11
12// auto generated forward declare list
13// clang-format off
14class BinaryStream;
17struct ActorUniqueID;
18// clang-format on
19
20class UpdateAbilitiesPacket : public ::Packet {
21public:
22 UpdateAbilitiesPacket(::ActorUniqueID targetPlayer, ::LayeredAbilities const& layeredAbilities)
23 : mData(targetPlayer, layeredAbilities) {}
24
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 40, ::SerializedAbilitiesData> mData;
29 // NOLINTEND
30
31public:
32 // virtual functions
33 // NOLINTBEGIN
34 virtual ::MinecraftPacketIds getId() const /*override*/;
35
36 virtual ::std::string_view getName() const /*override*/;
37
38 virtual void write(::BinaryStream& stream) const /*override*/;
39
40 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
41 // NOLINTEND
42
43public:
44 // member functions
45 // NOLINTBEGIN
46 MCAPI UpdateAbilitiesPacket();
47
48#ifdef LL_PLAT_C
49 MCAPI void fillIn(::LayeredAbilities& layeredAbilities) const;
50
51 MCAPI ::ActorUniqueID getTargetPlayer() const;
52#endif
53 // NOLINTEND
54
55public:
56 // constructor thunks
57 // NOLINTBEGIN
58 MCAPI void* $ctor();
59
60 MCAPI void* $ctor(::ActorUniqueID targetPlayer, ::LayeredAbilities const& layeredAbilities);
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66 MCAPI ::MinecraftPacketIds $getId() const;
67
68 MCAPI ::std::string_view $getName() const;
69
70 MCAPI void $write(::BinaryStream& stream) const;
71
72 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
73
74
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
Definition BinaryStream.h:11
Definition LayeredAbilities.h:21
Definition ReadOnlyBinaryStream.h:8
static MCAPI void ** $vftable()
Definition ActorUniqueID.h:10