Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ComponentStorageCompositeSchema.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/cereal/schema/DefaultCompositeSchema.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cereal { struct DescriptionConfig; }
11namespace cereal { struct MetaVisitor; }
12namespace cereal { struct SchemaDescription; }
13namespace cereal { struct SchemaReader; }
14namespace cereal { struct SchemaWriter; }
15namespace cereal::internal { struct LoadState; }
16namespace cereal::internal { struct ReflectionContext; }
17namespace cereal::internal { struct SaveState; }
18// clang-format on
19
20namespace cereal::internal {
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 4, uint> mTypeId;
27 // NOLINTEND
28
29public:
30 // virtual functions
31 // NOLINTBEGIN
32 virtual void doSave(
34 ::entt::meta_any const& any,
36 ) const /*override*/;
37
38 virtual void doLoad(
40 ::entt::meta_any& any,
41 ::entt::meta_any const& udata,
43 ) const /*override*/;
44
45 virtual bool doMap(::entt::meta_any& src, ::entt::meta_any& dst, ::cereal::MetaVisitor& visitor) const /*override*/;
46 // NOLINTEND
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCNAPI ::cereal::SchemaDescription makeDescriptionForComponents(
53 ::entt::meta_type const& type,
55 ) const;
56 // NOLINTEND
57
58public:
59 // static functions
60 // NOLINTBEGIN
61 MCNAPI static ::entt::meta_data
62 findComponentData(::entt::meta_type const& type, uint componentId, bool serializeDeprecated);
63
64 MCNAPI static ::std::pair<uint, ::entt::meta_data> findComponentFamilyData(
65 ::entt::meta_type const& source,
66 ::entt::meta_type const& curr,
67 ::std::string_view family,
68 bool serializeDeprecated
69 );
70 // NOLINTEND
71
72public:
73 // virtual function thunks
74 // NOLINTBEGIN
75 MCNAPI void $doSave(
77 ::entt::meta_any const& any,
79 ) const;
80
81 MCNAPI void $doLoad(
83 ::entt::meta_any& any,
84 ::entt::meta_any const& udata,
86 ) const;
87
88 MCNAPI bool $doMap(::entt::meta_any& src, ::entt::meta_any& dst, ::cereal::MetaVisitor& visitor) const;
89
90
91 // NOLINTEND
92};
93
94} // namespace cereal::internal
Definition ComponentStorageCompositeSchema.h:22
static MCAPI ::std::pair< uint, ::entt::meta_data > findComponentFamilyData(::entt::meta_type const &source, ::entt::meta_type const &curr, ::std::string_view family, bool serializeDeprecated)
MCAPI void $doLoad(::cereal::SchemaReader &reader, ::entt::meta_any &any, ::entt::meta_any const &udata, ::cereal::internal::LoadState const &state) const
MCAPI::cereal::SchemaDescription makeDescriptionForComponents(::cereal::internal::ReflectionContext const &ctx, ::entt::meta_type const &type, ::cereal::DescriptionConfig config) const
MCAPI void $doSave(::cereal::SchemaWriter &writer, ::entt::meta_any const &any, ::cereal::internal::SaveState const &state) const
MCAPI bool $doMap(::entt::meta_any &src, ::entt::meta_any &dst, ::cereal::MetaVisitor &visitor) const
static MCAPI ::entt::meta_data findComponentData(::entt::meta_type const &type, uint componentId, bool serializeDeprecated)
Definition DefaultCompositeSchema.h:18
Definition DescriptionConfig.h:12
Definition MetaVisitor.h:15
Definition SchemaDescription.h:21
Definition SchemaReader.h:13
Definition SchemaWriter.h:16
Definition LoadState.h:14
Definition ReflectionContext.h:10
Definition SaveState.h:13
Definition ctx.h:5