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 DataItem;
8class EntityContext;
9class Vec3;
10// clang-format on
11
13public:
14 // SynchedActorData inner types declare
15 // clang-format off
16 struct CopyableDataList;
17 // clang-format on
18
19 // SynchedActorData inner types define
20 using TypeInt8 = char;
21
22 using TypeShort = short;
23
24 using TypeString = ::std::string;
25
26 using TypeInt = int;
27
28 using TypeInt64 = int64;
29
30 using TypeFloat = float;
31
32 using TypeVec3 = ::Vec3;
33
34 using DataList = ::std::vector<::std::unique_ptr<::DataItem>>;
35
36 using ID = ushort;
37
39 public:
40 // member variables
41 // NOLINTBEGIN
42 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DataItem>>> mData;
43 // NOLINTEND
44 };
45
46public:
47 template <class T>
48 MCAPI void set(ushort id, T const& value);
49
50public:
51 // member variables
52 // NOLINTBEGIN
53 ::ll::TypedStorage<8, 24, ::std::vector<::std::unique_ptr<::DataItem>>> mItemsArray;
54 ::ll::TypedStorage<8, 24, ::std::bitset<136>> mDirtyFlags;
55 ::ll::TypedStorage<8, 24, ::std::bitset<136>> mHasComponentData;
56 // NOLINTEND
57
58public:
59 // member functions
60 // NOLINTBEGIN
61 MCAPI ::SynchedActorData _clone() const;
62
63 MCAPI void markDirty(::DataItem& item);
64
65 MCAPI ::std::vector<::std::unique_ptr<::DataItem>> packAll(::EntityContext const& entity) const;
66
67 MCAPI ::std::vector<::std::unique_ptr<::DataItem>> packDirty(::EntityContext& entity);
68
69 MCAPI ~SynchedActorData();
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75 MCAPI static ::std::vector<::std::unique_ptr<::DataItem>>
76 cloneDataList(::std::vector<::std::unique_ptr<::DataItem>> const& list);
77 // NOLINTEND
78
79public:
80 // static variables
81 // NOLINTBEGIN
82 MCAPI static ::std::string const& DIFF_ITEM();
83
84 MCAPI static ::std::string const& DIFF_ITEMS_SIZE();
85
86 MCAPI static ::std::string const& DIFF_ITEM_NULL();
87 // NOLINTEND
88
89public:
90 // destructor thunk
91 // NOLINTBEGIN
92 MCFOLD void $dtor();
93 // NOLINTEND
94};
Definition DataItem.h:14
Definition EntityContext.h:16
Definition SynchedActorData.h:12
Definition Vec3.h:10
Definition SynchedActorData.h:38