LeviLamina
Loading...
Searching...
No Matches
DimensionDataSerializer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class CompoundTag;
8class LevelStorage;
9// clang-format on
10
12public:
13 // member variables
14 // NOLINTBEGIN
15 ::ll::TypedStorage<4, 4, uint> mSaveCounter;
16 // NOLINTEND
17
18public:
19 // member functions
20 // NOLINTBEGIN
21 MCAPI ::std::string _createLevelStorageID(
22 ::std::string const& savePrefix,
23 ::std::string const& dimensionPrefix,
24 ::std::string const& saveId
25 );
26
27 MCAPI ::std::string createSaveID(::std::string const& savePrefix, ::std::string const& dimensionPrefix);
28
29 MCAPI void deleteDataWithID(::std::string const& levelStorageId, ::LevelStorage& levelStorage);
30
31 MCAPI void forEachKeyWithDimensionPrefix(
32 ::std::string const& savePrefix,
33 ::std::string const& dimensionPrefix,
34 ::DimensionType type,
35 ::LevelStorage& levelStorage,
36 ::std::function<void(::std::string const&, ::CompoundTag const&)> const& callback
37 );
38
39 MCAPI void
40 saveDataWithID(::std::string const& levelStorageId, ::CompoundTag const& tag, ::LevelStorage& levelStorage);
41 // NOLINTEND
42};
Definition CompoundTag.h:23
Definition DimensionDataSerializer.h:11
Definition LevelStorage.h:26