LeviLamina
Loading...
Searching...
No Matches
WorldHistoryPackSource.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/file/PathBuffer.h"
7#include "mc/deps/core/resource/PackOrigin.h"
8#include "mc/deps/core/resource/PackType.h"
9#include "mc/deps/core/threading/Async.h"
10#include "mc/resources/PackSource.h"
11
12// auto generated forward declare list
13// clang-format off
14class Pack;
17struct PackIdVersion;
21namespace Core { class Path; }
22namespace mce { class UUID; }
23// clang-format on
24
25class WorldHistoryPackSource : public ::PackSource {
26public:
27 // member variables
28 // NOLINTBEGIN
33 // NOLINTEND
34
35public:
36 // prevent constructor by default
37 WorldHistoryPackSource& operator=(WorldHistoryPackSource const&);
38 WorldHistoryPackSource(WorldHistoryPackSource const&);
39 WorldHistoryPackSource();
40
41public:
42 // virtual functions
43 // NOLINTBEGIN
44 virtual ~WorldHistoryPackSource() /*override*/;
45
46 virtual ::PackOrigin getPackOrigin() const /*override*/;
47
48 virtual ::PackType getPackType() const /*override*/;
49
50 virtual ::PackSourceLoadResult _loadImpl(::PackSourceLoadOptions&& options) /*override*/;
51 // NOLINTEND
52
53public:
54 // member functions
55 // NOLINTBEGIN
57
59 ::std::vector<::gsl::not_null<::std::shared_ptr<::Pack>>>& packs,
60 ::WorldPackHistory const& worldPackHistory
61 ) const;
62
63 MCNAPI ::std::unique_ptr<::Pack> _createPackFromHistoryPack(::WorldPackHistory const& worldPackHistory) const;
64
66
67 MCNAPI ::Core::PathBuffer<::std::string> const& getPathToWorld() const;
68
69#ifdef LL_PLAT_C
70 MCNAPI ::Bedrock::Threading::Async<void> saveHistoryFile();
71
72 MCNAPI void setSourceUUIDForPackHistory(::PackIdVersion const& packId, ::mce::UUID const& sourceUuid);
73
74 MCNAPI ::Bedrock::Threading::Async<void>
75 trackNewPacksIfNotTracked(::std::vector<::WorldPackHistory>&& worldPackHistory);
76#endif
77 // NOLINTEND
78
79public:
80 // static functions
81 // NOLINTBEGIN
82 MCNAPI static ::Core::PathBuffer<::std::string>
83 generateHistoryFilePath(::Core::Path const& pathToWorld, ::PackType type);
84 // NOLINTEND
85
86public:
87 // constructor thunks
88 // NOLINTBEGIN
90 // NOLINTEND
91
92public:
93 // destructor thunk
94 // NOLINTBEGIN
95 MCNAPI void $dtor();
96 // NOLINTEND
97
98public:
99 // virtual function thunks
100 // NOLINTBEGIN
101 MCNAPI ::PackOrigin $getPackOrigin() const;
102
103 MCNAPI ::PackType $getPackType() const;
104
105 MCNAPI ::PackSourceLoadResult $_loadImpl(::PackSourceLoadOptions&& options);
106
107
108 // NOLINTEND
109
110public:
111 // vftables
112 // NOLINTBEGIN
113 MCNAPI static void** $vftable();
114 // NOLINTEND
115};
Definition Path.h:12
Definition Pack.h:28
MCAPI ::Core::PathBuffer<::std::string > const & getPathToWorld() const
MCAPI void * $ctor(::WorldHistoryPackSourceOptions options)
MCAPI::PackSourceLoadResult $_loadImpl(::PackSourceLoadOptions &&options)
MCAPI bool _readWorldHistoryFile(::WorldPacksHistoryFile &file) const
MCAPI ::std::unique_ptr<::Pack > _createPackFromHistoryPack(::WorldPackHistory const &worldPackHistory) const
static MCAPI void ** $vftable()
MCAPI void _addPackFromHistoryPack(::std::vector<::gsl::not_null<::std::shared_ptr<::Pack > > > &packs, ::WorldPackHistory const &worldPackHistory) const
MCAPI WorldHistoryPackSource(::WorldHistoryPackSourceOptions options)
MCAPI::PackType $getPackType() const
static MCAPI ::Core::PathBuffer<::std::string > generateHistoryFilePath(::Core::Path const &pathToWorld, ::PackType type)
MCAPI::PackOrigin $getPackOrigin() const
Definition WorldPackHistory.h:12
Definition WorldPacksHistoryFile.h:12
Definition UUID.h:7
Definition PackIdVersion.h:10
Definition PackSourceLoadOptions.h:5
Definition PackSourceLoadResult.h:5
Definition WorldHistoryPackSourceOptions.h:5
Definition Alias.h:14