LeviLamina
Loading...
Searching...
No Matches
FileReferenceLoader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Core { class Path; }
8namespace Core { class Result; }
9// clang-format on
10
11namespace CerealHelpers {
12
13class FileReferenceLoader {
14public:
15 // member variables
16 // NOLINTBEGIN
21 // NOLINTEND
22
23public:
24 // prevent constructor by default
25 FileReferenceLoader& operator=(FileReferenceLoader const&);
26 FileReferenceLoader(FileReferenceLoader const&);
27 FileReferenceLoader();
28
29public:
30 // member functions
31 // NOLINTBEGIN
32#ifdef LL_PLAT_C
33 MCNAPI explicit FileReferenceLoader(::Core::Path const& path);
34
35 MCNAPI ::Core::Result _getFileDataFileSystem(::Core::Path const& path, ::std::string& outFileData);
36
37 MCNAPI ::Core::Result _getFileDataResourcePack(::Core::Path const& path, ::std::string& outFileData);
38
39 MCNAPI ::Core::Result getFileData(::Core::Path const& path, ::std::string& outFileData);
40
41 MCNAPI ::Core::Path getPath(::Core::Path const& relativePath);
42
43 MCNAPI bool isAllowedToUsePath(::Core::Path const& path);
44
45 MCNAPI void pushError(::std::string&& message);
46
47 MCNAPI void pushError(::std::string const& message);
48#endif
49 // NOLINTEND
50
51public:
52 // constructor thunks
53 // NOLINTBEGIN
54#ifdef LL_PLAT_C
55 MCNAPI void* $ctor(::Core::Path const& path);
56#endif
57 // NOLINTEND
58};
59
60} // namespace CerealHelpers
Definition Path.h:12
Definition Result.h:11
Definition Alias.h:14