3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/world/IRecentlyPlayedStorePersistence.h"
7#include "mc/client/world/RecentlyPlayedLoadError.h"
8#include "mc/deps/core/file/PathBuffer.h"
13namespace Core {
class Path; }
24 ::ll::TypedStorage<8, 8, ::Core::FileSystem&> mFileSystem;
25 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mSettingsDirectoryPath;
26 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mRecordDirectoryPath;
27 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mRecordFilePath;
28 ::ll::TypedStorage<8, 32, ::std::string> mAccountKey;
33 RecentlyPlayedStoreJsonPersistence& operator=(RecentlyPlayedStoreJsonPersistence
const&);
34 RecentlyPlayedStoreJsonPersistence(RecentlyPlayedStoreJsonPersistence
const&);
35 RecentlyPlayedStoreJsonPersistence();
40 virtual ~RecentlyPlayedStoreJsonPersistence() =
default;
42 virtual ::Core::PathBuffer<::std::string>
const& getSettingsDirectoryPath() const ;
44 virtual ::Core::PathBuffer<::std::
string> const& getRecordFilePath() const ;
46 virtual ::std::
string const& getAccountKey() const ;
48 virtual
bool hasLoadedProfile() const ;
50 virtual ::nonstd::expected<::World::RecentlyPlayedStoreLoadData, ::World::RecentlyPlayedLoadError>
51 load(::Core::Path const& settingsDirectoryPath, ::std::
string const& accountKey) ;
53 virtual
void clearLoadedProfile() ;
55 virtual
void persist(::gsl::span<::World::RecentlyPlayedEntry const> entries) ;
70 $load(::Core::
Path const& settingsDirectoryPath, ::
std::
string const& accountKey);
Definition FileSystem.h:28
Definition RecentlyPlayedStoreJsonPersistence.h:7
MCAPI bool $hasLoadedProfile() const
MCAPI ::Core::PathBuffer<::std::string > const & $getSettingsDirectoryPath() const
MCAPI void $clearLoadedProfile()
MCAPI ::nonstd::expected<::World::RecentlyPlayedStoreLoadData, ::World::RecentlyPlayedLoadError > $load(::Core::Path const &settingsDirectoryPath, ::std::string const &accountKey)
MCAPI::std::string const & $getAccountKey() const
MCAPI void $persist(::gsl::span<::World::RecentlyPlayedEntry const > entries)
static MCAPI void ** $vftable()
MCAPI ::Core::PathBuffer<::std::string > const & $getRecordFilePath() const
Definition RecentlyPlayedEntry.h:7
Definition RecentlyPlayedStoreLoadData.h:7