LeviLamina
Loading...
Searching...
No Matches
FilePathManager.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/string/BasicStackString.h"
8#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
9
10// auto generated forward declare list
11// clang-format off
12namespace Core { class PathView; }
13namespace Core { struct FilePathManagerPaths; }
14// clang-format on
15
16namespace Core {
17
18class FilePathManager : public ::Bedrock::EnableNonOwnerReferences {
19public:
20 // member variables
21 // NOLINTBEGIN
22 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mRoot;
23 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mHome;
24 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mWorlds;
25 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mSharedWorlds;
26 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mLevelArchive;
27 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mUserData;
28 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mSharedData;
29 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mPersonaPiecePack;
30 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string> const> mPackagePath;
31 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string> const> mDataUrl;
32 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string> const> mExternalFilePath;
33 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string> const> mTemporaryFilePath;
34 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string> const> mCacheFilePath;
35 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string> const> mSettingsPath;
36 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string> const> mResourcePacks;
37 ::ll::TypedStorage<1, 1, bool const> mIsDedicatedServer;
38 // NOLINTEND
39
40public:
41 // prevent constructor by default
42 FilePathManager& operator=(FilePathManager const&);
43 FilePathManager();
44
45public:
46 // virtual functions
47 // NOLINTBEGIN
48 virtual ~FilePathManager() /*override*/;
49 // NOLINTEND
50
51public:
52 // member functions
53 // NOLINTBEGIN
54 MCAPI FilePathManager(::Core::FilePathManager const&);
55
56 MCAPI explicit FilePathManager(::Core::FilePathManagerPaths&& paths);
57
58#ifdef LL_PLAT_C
59 MCAPI ::Core::PathView getCacheFilePath() const;
60
61 MCAPI ::Core::PathView getDataUrl() const;
62
63 MCAPI ::Core::PathView getExternalFilePath() const;
64#endif
65
66 MCAPI ::Core::PathView getLevelArchivePath() const;
67
68#ifdef LL_PLAT_C
69 MCAPI ::Core::PathView getPackagePath() const;
70#endif
71
72 MCAPI ::Core::PathView getResourcePacksPath() const;
73
74#ifdef LL_PLAT_C
75 MCAPI ::Core::PathView getSettingsPath() const;
76
77 MCAPI ::Core::PathView getSharedDataPath() const;
78
79 MCAPI ::Core::PathView getSharedWorldsPath() const;
80
81 MCAPI ::Core::PathView getTemporaryFilePath() const;
82#endif
83
84 MCAPI ::Core::PathView getUserDataPath() const;
85
86 MCAPI ::Core::PathView getWorldsPath() const;
87
88#ifdef LL_PLAT_C
89 MCAPI bool isDedicatedServer() const;
90#endif
91
92 MCAPI void setRootPath(::Core::PathView path);
93 // NOLINTEND
94
95public:
96 // static functions
97 // NOLINTBEGIN
98#ifdef LL_PLAT_C
99 MCFOLD static uint64 getWorldsPathDirectoryLimit();
100#endif
101 // NOLINTEND
102
103public:
104 // static variables
105 // NOLINTBEGIN
106 MCAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& ARCHIVE_DIR();
107
108 MCAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& HOME_DIR();
109
110 MCAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& PERSONA_TEST_DIR();
111
112 MCAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& REALM_WORLDS_DIR();
113
114 MCAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& RESOURCE_PACKS_DIR();
115
116 MCAPI static ::Core::PathBuffer<::Core::BasicStackString<char, 1024>> const& WORLDS_DIR();
117 // NOLINTEND
118
119public:
120 // constructor thunks
121 // NOLINTBEGIN
122 MCAPI void* $ctor(::Core::FilePathManager const&);
123
124 MCAPI void* $ctor(::Core::FilePathManagerPaths&& paths);
125 // NOLINTEND
126
127public:
128 // destructor thunk
129 // NOLINTBEGIN
130 MCAPI void $dtor();
131 // NOLINTEND
132
133public:
134 // vftables
135 // NOLINTBEGIN
136 MCNAPI static void** $vftable();
137 // NOLINTEND
138};
139
140} // namespace Core
Definition EnableNonOwnerReferences.h:7
Definition FilePathManager.h:18
static MCAPI void ** $vftable()
Definition PathView.h:19
Definition FilePathManagerPaths.h:7