#include <VersionedBlockIO.h>
◆ getIo()
| std::unique_ptr< version::BlockIO > lodestone::conversion::block::version::VersionedBlockIO::getIo |
( |
uint32_t | version | ) |
|
11 {
12 std::unique_ptr<BlockIO> io = std::make_unique<BlockIO>();
13
15
16
17
19 for (auto &[internal, blk] : rit->second) {
20 if (blk == nullptr) {
21
22 continue;
23 }
24
25 LOG_DEBUG(
"Registered block '" << blk->toString() <<
"' ('" << internal->toString() <<
"') for version " << std::to_string(version));
26 io->registerBlockIfNotExist(internal, blk);
27 }
28 }
29
30 return io;
31 }
std::map< uint32_t, map_t< const lodestone::common::registry::Identifier *, data::AbstractBlockData * > > m_fromInternalConversionMap
Definition VersionedBlockIO.h:40
◆ registerBlock()
◆ removeBlock()
◆ m_fromInternalConversionMap
The documentation for this class was generated from the following files:
- /home/runner/work/libLodestone/libLodestone/projects/Libraries/Conversion/include/Lodestone.Conversion/block/VersionedBlockIO.h
- /home/runner/work/libLodestone/libLodestone/projects/Libraries/Conversion/src/block/VersionedBlockIO.cpp