LeviLamina
Loading...
Searching...
No Matches
SetActorDataPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4#include "mc/legacy/ActorRuntimeID.h"
5#include "mc/network/packet/PlayerInputTick.h"
6#include "mc/world/actor/DataItem.h"
7#include "mc/world/actor/state/PropertySyncData.h"
8
9// auto generated inclusion list
10#include "mc/legacy/ActorRuntimeID.h"
11#include "mc/network/MinecraftPacketIds.h"
12#include "mc/network/Packet.h"
13#include "mc/network/packet/PlayerInputTick.h"
14#include "mc/platform/Result.h"
15#include "mc/world/actor/state/PropertySyncData.h"
16
17// auto generated forward declare list
18// clang-format off
19class BinaryStream;
20class DataItem;
24// clang-format on
25
26class SetActorDataPacket : public ::Packet {
27public:
28 // member variables
29 // NOLINTBEGIN
31 ::std::vector<::std::unique_ptr<::DataItem>> mPackedItems;
32 ::PropertySyncData mSynchedProperties;
34 // NOLINTEND
35
36public:
37 // virtual functions
38 // NOLINTBEGIN
39 virtual ~SetActorDataPacket() /*override*/;
40
41 virtual ::MinecraftPacketIds getId() const /*override*/;
42
43 virtual ::std::string_view getName() const /*override*/;
44
45 virtual void write(::BinaryStream& stream) const /*override*/;
46
47 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
48 // NOLINTEND
49
50public:
51 // member functions
52 // NOLINTBEGIN
53 MCAPI SetActorDataPacket();
54
55 MCAPI SetActorDataPacket(
58 ::PropertyComponent* propertyComponent,
59 uint64 tick,
60 bool packAll
61 );
62
63#ifdef LL_PLAT_C
64 MCAPI uint64 const getCurrentTick() const;
65
66 MCFOLD ::PropertySyncData const& getSynchedProperties() const;
67
68 MCFOLD ::std::vector<::std::unique_ptr<::DataItem>> const& getUnpackedData() const;
69#endif
70 // NOLINTEND
71
72public:
73 // constructor thunks
74 // NOLINTBEGIN
75 MCAPI void* $ctor();
76
77 MCAPI void* $ctor(
80 ::PropertyComponent* propertyComponent,
81 uint64 tick,
82 bool packAll
83 );
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_view $getName() const;
98
99 MCAPI void $write(::BinaryStream& stream) const;
100
101 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
102
103
104 // NOLINTEND
105
106public:
107 // vftables
108 // NOLINTBEGIN
109 MCNAPI static void** $vftable();
110 // NOLINTEND
111};
Definition ActorRuntimeID.h:5
Definition BinaryStream.h:11
Definition DataItem.h:14
Definition PropertyComponent.h:21
Definition ReadOnlyBinaryStream.h:8
static MCAPI void ** $vftable()
Definition SynchedActorDataEntityWrapper.h:24
Definition PlayerInputTick.h:10
Definition PropertySyncData.h:5