LeviLamina
Loading...
Searching...
No Matches
SynchedActorData.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class DataItem;
9class EntityContext;
10class Vec3;
11// clang-format on
12
14public:
15 // SynchedActorData inner types declare
16 // clang-format off
17 struct CopyableDataList;
18 // clang-format on
19
20 // SynchedActorData inner types define
21 struct CopyableDataList {
22 public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DataItem>>> mData;
26 // NOLINTEND
27
28#ifdef LL_PLAT_S
29#else // LL_PLAT_C
30 public:
31 // prevent constructor by default
32 CopyableDataList& operator=(CopyableDataList const&);
33 CopyableDataList();
34
35#endif
36 public:
37 // member functions
38 // NOLINTBEGIN
39#ifdef LL_PLAT_C
40 MCAPI CopyableDataList(::SynchedActorData::CopyableDataList const& other);
41
42 MCAPI ~CopyableDataList();
43#endif
44 // NOLINTEND
45
46 public:
47 // constructor thunks
48 // NOLINTBEGIN
49#ifdef LL_PLAT_C
50 MCAPI void* $ctor(::SynchedActorData::CopyableDataList const& other);
51#endif
52 // NOLINTEND
53
54 public:
55 // destructor thunk
56 // NOLINTBEGIN
57#ifdef LL_PLAT_C
58 MCFOLD void $dtor();
59#endif
60 // NOLINTEND
61 };
62
63 using DataList = ::std::vector<::std::unique_ptr<::DataItem>>;
64
65 using ID = ushort;
66
67 using TypeFloat = float;
68
69 using TypeInt = int;
70
71 using TypeInt64 = int64;
72
73 using TypeInt8 = schar;
74
75 using TypeShort = short;
76
77 using TypeString = ::std::string;
78
79 using TypeVec3 = ::Vec3;
80
81public:
82 template <class T>
83 MCAPI void set(ushort id, T const& value);
84
85public:
86 // member variables
87 // NOLINTBEGIN
88 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DataItem>>> mItemsArray;
89 ::ll::TypedStorage<8, 24, ::std::bitset<139>> mDirtyFlags;
90 ::ll::TypedStorage<8, 24, ::std::bitset<139>> mHasComponentData;
91 // NOLINTEND
92
93public:
94 // member functions
95 // NOLINTBEGIN
96 MCAPI ::SynchedActorData _clone() const;
97
98#ifdef LL_PLAT_C
99 MCAPI bool assignValue(::DataItem const& newItem);
100
101 MCAPI void assignValues(
102 ::std::vector<::std::unique_ptr<::DataItem>> const& items,
103 ::Actor& actor,
104 ::std::optional<uint64> targetFrame
105 );
106
107 MCAPI int getInt(ushort id) const;
108#endif
109
110 MCAPI ::std::vector<::std::unique_ptr<::DataItem>> packAll(::EntityContext const& entity) const;
111
112 MCAPI ::std::vector<::std::unique_ptr<::DataItem>> packDirty(::EntityContext& entity);
113
114 MCAPI ~SynchedActorData();
115 // NOLINTEND
116
117public:
118 // static functions
119 // NOLINTBEGIN
120 MCAPI static ::std::vector<::std::unique_ptr<::DataItem>>
121 cloneDataList(::std::vector<::std::unique_ptr<::DataItem>> const& list);
122 // NOLINTEND
123
124public:
125 // static variables
126 // NOLINTBEGIN
127 MCAPI static ::std::string const& DIFF_ITEM();
128
129 MCAPI static ::std::string const& DIFF_ITEMS_SIZE();
130
131 MCAPI static ::std::string const& DIFF_ITEM_NULL();
132 // NOLINTEND
133
134public:
135 // destructor thunk
136 // NOLINTBEGIN
137 MCFOLD void $dtor();
138 // NOLINTEND
139};
Definition Actor.h:106
Definition DataItem.h:14
Definition EntityContext.h:16
Definition SynchedActorData.h:13
Definition Vec3.h:10
Definition SynchedActorData.h:21