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
22 public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DataItem>>> mData;
26 // NOLINTEND
27
28 public:
29 // member functions
30 // NOLINTBEGIN
31
32 // NOLINTEND
33
34 public:
35 // constructor thunks
36 // NOLINTBEGIN
37 MCAPI_C void* $ctor(::SynchedActorData::CopyableDataList const& other);
38 // NOLINTEND
39
40 public:
41 // destructor thunk
42 // NOLINTBEGIN
43 MCFOLD_C void $dtor();
44 // NOLINTEND
45 };
46
47 using DataList = ::std::vector<::std::unique_ptr<::DataItem>>;
48
49 using ID = ushort;
50
51 using TypeFloat = float;
52
53 using TypeInt = int;
54
55 using TypeInt64 = int64;
56
57 using TypeInt8 = schar;
58
59 using TypeShort = short;
60
61 using TypeString = ::std::string;
62
63 using TypeVec3 = ::Vec3;
64
65public:
66 template <class T>
67 MCAPI void set(ushort id, T const& value);
68
69public:
70 // member variables
71 // NOLINTBEGIN
72 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DataItem>>> mItemsArray;
73 ::ll::TypedStorage<8, 24, ::std::bitset<136>> mDirtyFlags;
74 ::ll::TypedStorage<8, 24, ::std::bitset<136>> mHasComponentData;
75 // NOLINTEND
76
77public:
78 // member functions
79 // NOLINTBEGIN
80 MCAPI ::SynchedActorData _clone() const;
81
82 MCAPI_C bool assignValue(::DataItem const& newItem);
83
84 MCAPI_C void assignValues(
85 ::std::vector<::std::unique_ptr<::DataItem>> const& items,
86 ::Actor& actor,
87 ::std::optional<uint64> targetFrame
88 );
89
90 MCAPI void markDirty(::DataItem& item);
91
92 MCAPI ::std::vector<::std::unique_ptr<::DataItem>> packAll(::EntityContext const& entity) const;
93
94 MCAPI ::std::vector<::std::unique_ptr<::DataItem>> packDirty(::EntityContext& entity);
95
96 MCAPI ~SynchedActorData();
97 // NOLINTEND
98
99public:
100 // static functions
101 // NOLINTBEGIN
102 MCAPI static ::std::vector<::std::unique_ptr<::DataItem>>
103 cloneDataList(::std::vector<::std::unique_ptr<::DataItem>> const& list);
104 // NOLINTEND
105
106public:
107 // static variables
108 // NOLINTBEGIN
109 MCAPI static ::std::string const& DIFF_ITEM();
110
111 MCAPI static ::std::string const& DIFF_ITEMS_SIZE();
112
113 MCAPI static ::std::string const& DIFF_ITEM_NULL();
114 // NOLINTEND
115
116public:
117 // destructor thunk
118 // NOLINTBEGIN
119 MCFOLD void $dtor();
120 // NOLINTEND
121};
Definition Actor.h:105
Definition DataItem.h:14
Definition EntityContext.h:16
Definition SynchedActorData.h:13
Definition Vec3.h:10
Definition SynchedActorData.h:21