Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
RecentlyPlayedStoreJsonPersistence.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 FileSystem; }
13namespace Core { class Path; }
14namespace World { struct RecentlyPlayedEntry; }
15namespace World { struct RecentlyPlayedStoreLoadData; }
16// clang-format on
17
18namespace World {
19
20class RecentlyPlayedStoreJsonPersistence : public ::World::IRecentlyPlayedStorePersistence {
21public:
22 // member variables
23 // NOLINTBEGIN
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;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 RecentlyPlayedStoreJsonPersistence& operator=(RecentlyPlayedStoreJsonPersistence const&);
34 RecentlyPlayedStoreJsonPersistence(RecentlyPlayedStoreJsonPersistence const&);
35 RecentlyPlayedStoreJsonPersistence();
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~RecentlyPlayedStoreJsonPersistence() /*override*/ = default;
41
42 virtual ::Core::PathBuffer<::std::string> const& getSettingsDirectoryPath() const /*override*/;
43
44 virtual ::Core::PathBuffer<::std::string> const& getRecordFilePath() const /*override*/;
45
46 virtual ::std::string const& getAccountKey() const /*override*/;
47
48 virtual bool hasLoadedProfile() const /*override*/;
49
50 virtual ::nonstd::expected<::World::RecentlyPlayedStoreLoadData, ::World::RecentlyPlayedLoadError>
51 load(::Core::Path const& settingsDirectoryPath, ::std::string const& accountKey) /*override*/;
52
53 virtual void clearLoadedProfile() /*override*/;
54
55 virtual void persist(::gsl::span<::World::RecentlyPlayedEntry const> entries) /*override*/;
56 // NOLINTEND
57
58public:
59 // virtual function thunks
60 // NOLINTBEGIN
61 MCNAPI ::Core::PathBuffer<::std::string> const& $getSettingsDirectoryPath() const;
62
63 MCNAPI ::Core::PathBuffer<::std::string> const& $getRecordFilePath() const;
64
65 MCNAPI ::std::string const& $getAccountKey() const;
66
67 MCNAPI bool $hasLoadedProfile() const;
68
69 MCNAPI ::nonstd::expected<::World::RecentlyPlayedStoreLoadData, ::World::RecentlyPlayedLoadError>
70 $load(::Core::Path const& settingsDirectoryPath, ::std::string const& accountKey);
71
72 MCNAPI void $clearLoadedProfile();
73
74 MCNAPI void $persist(::gsl::span<::World::RecentlyPlayedEntry const> entries);
75 // NOLINTEND
76
77public:
78 // vftables
79 // NOLINTBEGIN
80 MCNAPI static void** $vftable();
81 // NOLINTEND
82};
83
84} // namespace World
Definition FileSystem.h:28
Definition Path.h:10
Definition Path.h:16
Definition RecentlyPlayedStoreJsonPersistence.h:7
MCAPI ::Core::PathBuffer<::std::string > const & $getSettingsDirectoryPath() const
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)
MCAPI ::Core::PathBuffer<::std::string > const & $getRecordFilePath() const
STL namespace.
Definition RecentlyPlayedEntry.h:7
Definition RecentlyPlayedStoreLoadData.h:7