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&);
36
37 public:
38 // member functions
39 // NOLINTBEGIN
40 MCNAPI ::InternalComponentRegistry::ComponentInfo& operator=(::InternalComponentRegistry::ComponentInfo&&);
41
43 // NOLINTEND
44
45 public:
46 // destructor thunk
47 // NOLINTBEGIN
48 MCNAPI void $dtor();
49 // NOLINTEND
50 };
51
52public:
53 // member variables
54 // NOLINTBEGIN
55 ::ll::TypedStorage<8, 64, ::std::unordered_map<::HashedString, ::InternalComponentRegistry::ComponentInfo>>
56 mRegistry;
57 // NOLINTEND
58
59public:
60 // virtual functions
61 // NOLINTBEGIN
62 // vIndex: 0
63 virtual ~InternalComponentRegistry() = default;
64
65 // vIndex: 1
66 virtual void registerComponents();
67 // NOLINTEND
68
69public:
70 // member functions
71 // NOLINTBEGIN
72 MCNAPI void _initializeComponents(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) const;
73
74 MCNAPI void initializeComponents(::Actor& owner, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) const;
75 // NOLINTEND
76
77public:
78 // static functions
79 // NOLINTBEGIN
80 MCNAPI static ::CompoundTag& _getOrCreateComponentScope(::CompoundTag& tag, ::std::string const& componentName);
81 // NOLINTEND
82
83public:
84 // static variables
85 // NOLINTBEGIN
86 MCNAPI static ::std::string const& INTERNAL_COMPONENTS();
87 // NOLINTEND
88
89public:
90 // virtual function thunks
91 // NOLINTBEGIN
92 MCNAPI void $registerComponents();
93 // NOLINTEND
94
95public:
96 // vftables
97 // NOLINTBEGIN
98 MCNAPI static void** $vftable();
99 // NOLINTEND
100};
Definition Actor.h:103
Definition CompoundTag.h:13
Definition DataLoadHelper.h:20
Definition HashedString.h:5
Definition InternalComponentRegistry.h:13
MCAPI void _initializeComponents(::Actor &owner, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper) const
static MCAPI void ** $vftable()
MCAPI void $registerComponents()
static MCAPI ::CompoundTag & _getOrCreateComponentScope(::CompoundTag &tag, ::std::string const &componentName)
MCAPI void initializeComponents(::Actor &owner, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper) const
static MCAPI ::std::string const & INTERNAL_COMPONENTS()
Definition InternalComponentRegistry.h:21
MCAPI::InternalComponentRegistry::ComponentInfo & operator=(::InternalComponentRegistry::ComponentInfo &&)