MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / serialize

Method serialize

src/geode/model/mixin/core/block.cpp:111–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 template < index_t dimension >
110 template < typename Archive >
111 void Block< dimension >::serialize( Archive& serializer )
112 {
113 serializer.ext( *this,
114 Growable< Archive, Block >{
115 { []( Archive& archive2, Block& block ) {
116 archive2.object( block.impl_ );
117 archive2.ext( block,
118 bitsery::ext::BaseClass< Component< dimension > >{} );
119 IdentifierBuilder mesh_builder{
120 block.get_modifiable_mesh()
121 };
122 mesh_builder.set_id( block.id() );
123 },
124 []( Archive& archive2, Block& block ) {
125 archive2.object( block.impl_ );
126 archive2.ext( block, bitsery::ext::BaseClass<
127 Component< dimension > >{} );
128 } } } );
129 }
130
131 template < index_t dimension >
132 void Block< dimension >::set_mesh(

Callers

nothing calls this directly

Calls 2

get_modifiable_meshMethod · 0.45
set_idMethod · 0.45

Tested by

no test coverage detected