LeviLamina
Loading...
Searching...
No Matches
SynchedActorDataEntityWrapper.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/game_refs/WeakRef.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class BlockPos;
12class CompoundTag;
13class DataItem;
14class EntityContext;
18class Vec3;
22// clang-format on
23
24class SynchedActorDataEntityWrapper {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<8, 8, ::gsl::not_null<::SynchedActorDataComponent*>> mData;
29 ::ll::TypedStorage<8, 8, ::gsl::not_null<::ActorDataFlagComponent*>> mFlagData;
30 ::ll::TypedStorage<8, 8, ::gsl::not_null<::ActorDataDirtyFlagsComponent*>> mDirtyFlags;
31 ::ll::TypedStorage<8, 24, ::WeakRef<::EntityContext>> mEntityContext;
32 // NOLINTEND
33
34public:
35 template <class T>
36 MCAPI void set(ushort id, T const& value);
37
38public:
39 // prevent constructor by default
40 SynchedActorDataEntityWrapper();
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCAPI explicit SynchedActorDataEntityWrapper(::EntityContext& entity);
46
47 MCFOLD ::gsl::not_null<::SynchedActorData const*> _get() const;
48
49 MCFOLD ::gsl::not_null<::SynchedActorData*> _get();
50
51#ifdef LL_PLAT_C
52 MCAPI void assignValues(
53 ::std::vector<::std::unique_ptr<::DataItem>> const& items,
54 ::Actor& actor,
55 ::std::optional<uint64> targetFrame
56 );
57#endif
58
59 MCAPI ::CompoundTag const& getCompoundTag(ushort id) const;
60
61 MCAPI float getFloat(ushort id) const;
62
63 MCAPI int getInt(ushort id) const;
64
65 MCAPI int64 getInt64(ushort id) const;
66
67 MCAPI schar getInt8(ushort id) const;
68
69 MCAPI ::BlockPos getPosition(ushort id) const;
70
71 MCAPI short getShort(ushort id) const;
72
73 MCAPI ::std::string const& getString(ushort id) const;
74
75 MCAPI ::Vec3 getVec3(ushort id) const;
76
77 MCAPI bool hasData(ushort id) const;
78
79 MCAPI bool isDirty() const;
80
81 MCAPI void markDirty(ushort id);
82
83 MCAPI ::std::vector<::std::unique_ptr<::DataItem>> packAll() const;
84
85 MCAPI ::std::vector<::std::unique_ptr<::DataItem>> packDirty();
86
87#ifdef LL_PLAT_C
88 MCAPI void queueAssignment(
89 ::std::vector<::std::unique_ptr<::DataItem>> const& items,
90 ::Actor& actor,
91 ::std::optional<uint64> targetFrame
92 );
93#endif
94
95 MCFOLD ::SynchedActorDataReader reader() const;
96
97 MCAPI ::SynchedActorDataWriter writer();
98
99 MCAPI ~SynchedActorDataEntityWrapper();
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCAPI void* $ctor(::EntityContext& entity);
106 // NOLINTEND
107
108public:
109 // destructor thunk
110 // NOLINTBEGIN
111 MCFOLD void $dtor();
112 // NOLINTEND
113};
Definition Actor.h:123
Definition BlockPos.h:21
Definition CompoundTag.h:23
Definition DataItem.h:14
Definition EntityContext.h:17
Definition SynchedActorDataReader.h:15
Definition SynchedActorDataWriter.h:17
Definition SynchedActorData.h:14
Definition Vec3.h:10
Definition ActorDataDirtyFlagsComponent.h:5
Definition ActorDataFlagComponent.h:10
Definition SynchedActorDataComponent.h:8