LeviLamina
Loading...
Searching...
No Matches
AddActorPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/math/Vec2.h"
7#include "mc/deps/core/math/Vec3.h"
8#include "mc/legacy/ActorRuntimeID.h"
9#include "mc/legacy/ActorUniqueID.h"
10#include "mc/network/MinecraftPacketIds.h"
11#include "mc/network/Packet.h"
12#include "mc/platform/Result.h"
13#include "mc/world/actor/ActorDefinitionIdentifier.h"
14#include "mc/world/actor/state/PropertySyncData.h"
15
16// auto generated forward declare list
17// clang-format off
18class Actor;
21class BinaryStream;
22class DataItem;
25struct ActorLink;
26struct SyncedAttribute;
27// clang-format on
28
29class AddActorPacket : public ::Packet {
30public:
31 // member variables
32 // NOLINTBEGIN
33 ::ll::TypedStorage<8, 24, ::std::vector<::ActorLink>> mLinks;
34 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
35 ::ll::TypedStorage<4, 12, ::Vec3> mVelocity;
36 ::ll::TypedStorage<4, 8, ::Vec2> mRot;
37 ::ll::TypedStorage<4, 4, float> mYHeadRotation;
38 ::ll::TypedStorage<4, 4, float> mYBodyRotation;
39 ::ll::TypedStorage<8, 8, ::ActorUniqueID> mEntityId;
40 ::ll::TypedStorage<8, 8, ::ActorRuntimeID> mRuntimeId;
41 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DataItem>>> mData;
42 ::ll::TypedStorage<8, 176, ::ActorDefinitionIdentifier> mType;
43 ::ll::TypedStorage<8, 24, ::std::vector<::SyncedAttribute>> mAttributes;
44 ::ll::TypedStorage<8, 48, ::PropertySyncData> mSynchedProperties;
45 ::ll::TypedStorage<8, 24, ::std::vector<::AttributeInstanceHandle>> mAttributeHandles;
46 ::ll::TypedStorage<8, 8, ::BaseAttributeMap const*> mMap;
47 ::ll::TypedStorage<8, 8, ::SynchedActorDataEntityWrapper*> mEntityData;
48 // NOLINTEND
49
50public:
51 // virtual functions
52 // NOLINTBEGIN
53 virtual ~AddActorPacket() /*override*/;
54
55 virtual ::MinecraftPacketIds getId() const /*override*/;
56
57 virtual ::std::string_view getName() const /*override*/;
58
59 virtual void write(::BinaryStream& stream) const /*override*/;
60
61 virtual ::Bedrock::Result<void> _read(::ReadOnlyBinaryStream& stream) /*override*/;
62 // NOLINTEND
63
64public:
65 // member functions
66 // NOLINTBEGIN
67 MCAPI AddActorPacket();
68
69 MCAPI explicit AddActorPacket(::Actor& e);
70
71#ifdef LL_PLAT_C
72 MCFOLD ::std::vector<::SyncedAttribute> const& getAttributes() const;
73
74 MCFOLD ::std::vector<::std::unique_ptr<::DataItem>> const& getData() const;
75
76 MCFOLD ::ActorUniqueID const getEntityId() const;
77
78 MCFOLD ::Vec3 const& getPosition() const;
79
80 MCFOLD ::Vec2 const& getRot() const;
81
82 MCFOLD ::ActorRuntimeID getRuntimeId() const;
83
84 MCFOLD ::PropertySyncData const& getSynchedProperties() const;
85
86 MCAPI ::ActorDefinitionIdentifier getType() const;
87
88 MCFOLD ::Vec3 const& getVelocity() const;
89
90 MCFOLD float getYBodyRotation() const;
91
92 MCAPI float getYHeadRotation() const;
93#endif
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCAPI void* $ctor();
100
101 MCAPI void* $ctor(::Actor& e);
102 // NOLINTEND
103
104public:
105 // destructor thunk
106 // NOLINTBEGIN
107 MCAPI void $dtor();
108 // NOLINTEND
109
110public:
111 // virtual function thunks
112 // NOLINTBEGIN
113 MCFOLD ::MinecraftPacketIds $getId() const;
114
115 MCAPI ::std::string_view $getName() const;
116
117 MCAPI void $write(::BinaryStream& stream) const;
118
119 MCAPI ::Bedrock::Result<void> $_read(::ReadOnlyBinaryStream& stream);
120
121
122 // NOLINTEND
123
124public:
125 // vftables
126 // NOLINTBEGIN
127 MCNAPI static void** $vftable();
128 // NOLINTEND
129};
Definition Actor.h:125
static MCAPI void ** $vftable()
Definition AttributeInstanceHandle.h:11
Definition BaseAttributeMap.h:21
Definition BinaryStream.h:11
Definition DataItem.h:14
Definition ReadOnlyBinaryStream.h:8
Definition SynchedActorDataEntityWrapper.h:24
Definition SyncedAttribute.h:5