Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
NullRecentlyPlayedStorePersistence.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/client/world/IRecentlyPlayedStorePersistence.h"
7#include "mc/client/world/RecentlyPlayedLoadError.h"
8#include "mc/deps/core/file/PathBuffer.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Core { class Path; }
13namespace World { struct RecentlyPlayedEntry; }
14namespace World { struct RecentlyPlayedStoreLoadData; }
15// clang-format on
16
17namespace World {
18
19class NullRecentlyPlayedStorePersistence : public ::World::IRecentlyPlayedStorePersistence {
20public:
21 // member variables
22 // NOLINTBEGIN
23 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mEmptyPath;
24 ::ll::TypedStorage<8, 32, ::std::string> mEmptyAccountKey;
25 // NOLINTEND
26
27public:
28 // virtual functions
29 // NOLINTBEGIN
30 virtual ::Core::PathBuffer<::std::string> const& getSettingsDirectoryPath() const /*override*/;
31
32 virtual ::Core::PathBuffer<::std::string> const& getRecordFilePath() const /*override*/;
33
34 virtual ::std::string const& getAccountKey() const /*override*/;
35
36 virtual bool hasLoadedProfile() const /*override*/;
37
38 virtual ::nonstd::expected<::World::RecentlyPlayedStoreLoadData, ::World::RecentlyPlayedLoadError>
39 load(::Core::Path const&, ::std::string const&) /*override*/;
40
41 virtual void clearLoadedProfile() /*override*/;
42
43 virtual void persist(::gsl::span<::World::RecentlyPlayedEntry const>) /*override*/;
44 // NOLINTEND
45
46public:
47 // virtual function thunks
48 // NOLINTBEGIN
49 MCNAPI ::Core::PathBuffer<::std::string> const& $getSettingsDirectoryPath() const;
50
51 MCNAPI ::Core::PathBuffer<::std::string> const& $getRecordFilePath() const;
52
53 MCNAPI ::std::string const& $getAccountKey() const;
54
55 MCNAPI bool $hasLoadedProfile() const;
56
57 MCNAPI ::nonstd::expected<::World::RecentlyPlayedStoreLoadData, ::World::RecentlyPlayedLoadError>
58 $load(::Core::Path const&, ::std::string const&);
59
60 MCNAPI void $clearLoadedProfile();
61
62 MCNAPI void $persist(::gsl::span<::World::RecentlyPlayedEntry const>);
63 // NOLINTEND
64};
65
66} // namespace World
Definition Path.h:10
Definition Path.h:16
Definition NullRecentlyPlayedStorePersistence.h:7
MCAPI ::nonstd::expected<::World::RecentlyPlayedStoreLoadData, ::World::RecentlyPlayedLoadError > $load(::Core::Path const &, ::std::string const &)
MCAPI ::Core::PathBuffer<::std::string > const & $getRecordFilePath() const
MCAPI::std::string const & $getAccountKey() const
MCAPI ::Core::PathBuffer<::std::string > const & $getSettingsDirectoryPath() const
MCAPI void $persist(::gsl::span<::World::RecentlyPlayedEntry const >)
STL namespace.
Definition RecentlyPlayedEntry.h:7
Definition RecentlyPlayedStoreLoadData.h:7