LeviLamina
Loading...
Searching...
No Matches
InternalComponentRegistry.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class Actor;
8class CompoundTag;
10class HashedString;
11// clang-format on
12
14public:
15 // InternalComponentRegistry inner types declare
16 // clang-format off
17 struct ComponentInfo;
18 // clang-format on
19
20 // InternalComponentRegistry inner types define
22 public:
23 // member variables
24 // NOLINTBEGIN
25 ::ll::TypedStorage<8, 64, ::std::function<void(::CompoundTag const&, ::CompoundTag&)>>
26 mLegacyDataConversionFunc;
27 ::ll::TypedStorage<8, 64, ::std::function<void(::Actor&, ::CompoundTag const&)>> mCreateAndLoadComponentFunc;
28 ::ll::TypedStorage<8, 64, ::std::function<void(::Actor const&, ::CompoundTag&)>> mSaveComponentFunc;
29 // NOLINTEND
30
31 public:
32 // prevent constructor by default
33 ComponentInfo& operator=(ComponentInfo const&);
35
36 public:
37 // member functions
38 // NOLINTBEGIN
39 MCAPI ::InternalComponentRegistry::ComponentInfo& operator=(::InternalComponentRegistry::ComponentInfo&&);
40
41 MCAPI ~ComponentInfo();
42 // NOLINTEND
43
44 public:
45 // destructor thunk
46 // NOLINTBEGIN
47 MCFOLD void $dtor();
48 // NOLINTEND
49 };
50
51public:
52 // member variables
53 // NOLINTBEGIN
54 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::InternalComponentRegistry::ComponentInfo>>
55 mRegistry;
56 // NOLINTEND
57
58public:
59 // virtual functions
60 // NOLINTBEGIN
61 // vIndex: 0
62 virtual ~InternalComponentRegistry() = default;
63
64 // vIndex: 1
65 virtual void registerComponents();
66 // NOLINTEND
67
68public:
69 // member functions
70 // NOLINTBEGIN
71 MCAPI void _initializeComponents(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) const;
72
73 MCAPI void initializeComponents(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) const;
74 // NOLINTEND
75
76public:
77 // static functions
78 // NOLINTBEGIN
79 MCAPI static ::CompoundTag& _getOrCreateComponentScope(::CompoundTag& tag, ::std::string const& componentName);
80 // NOLINTEND
81
82public:
83 // static variables
84 // NOLINTBEGIN
85 MCAPI static ::std::string const& INTERNAL_COMPONENTS();
86 // NOLINTEND
87
88public:
89 // destructor thunk
90 // NOLINTBEGIN
91
92 // NOLINTEND
93
94public:
95 // virtual function thunks
96 // NOLINTBEGIN
97 MCAPI void $registerComponents();
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCAPI static void** $vftable();
104 // NOLINTEND
105};
Definition Actor.h:104
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition HashedString.h:5
Definition InternalComponentRegistry.h:13
Definition InternalComponentRegistry.h:21