Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
ResourceLocation.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/resource/ResourceFileSystem.h"
8
9// auto generated forward declare list
10// clang-format off
11class HashedString;
12namespace Core { class PathView; }
13// clang-format on
14
15class ResourceLocation {
16public:
17 // ResourceLocation inner types declare
18 // clang-format off
19 struct TextureSetHelpers;
20 // clang-format on
21
22 // ResourceLocation inner types define
24 public:
25 // TextureSetHelpers inner types declare
26 // clang-format off
27 class ResourceHelper;
28 // clang-format on
29
30 // TextureSetHelpers inner types define
31 enum class ColorPipeline : uint {};
32
33 enum class LoadMode : uint {};
34
36 };
37
38public:
39 // member variables
40 // NOLINTBEGIN
41 ::ll::TypedStorage<4, 4, ::ResourceFileSystem> mFileSystem;
42 ::ll::TypedStorage<8, 32, ::Core::PathBuffer<::std::string>> mPath;
43 ::ll::TypedStorage<8, 8, uint64> mPathHash;
44 ::ll::TypedStorage<8, 8, uint64> mFullHash;
45 // NOLINTEND
46
47#ifdef LL_PLAT_S
48public:
49 // prevent constructor by default
50 ResourceLocation();
51
52#else // LL_PLAT_C
53public:
54 // prevent constructor by default
55 ResourceLocation& operator=(ResourceLocation const&);
56 ResourceLocation();
57
58#endif
59public:
60 // member functions
61 // NOLINTBEGIN
62 MCAPI explicit ResourceLocation(::Core::PathView path);
63
64#ifdef LL_PLAT_C
65 MCAPI ResourceLocation(::ResourceLocation const& rhs);
66#endif
67
68 MCAPI ResourceLocation(::Core::PathView path, ::ResourceFileSystem fileSystem);
69
70 MCNAPI ::Core::PathBuffer<::std::string> getFullPath() const;
71
72#ifdef LL_PLAT_C
73 MCNAPI ::HashedString getHashedPath() const;
74
75 MCNAPI bool operator==(::ResourceLocation const& rhs) const;
76#endif
77
79
80 MCAPI ~ResourceLocation();
81 // NOLINTEND
82
83public:
84 // constructor thunks
85 // NOLINTBEGIN
86 MCAPI void* $ctor(::Core::PathView path);
87
88#ifdef LL_PLAT_C
89 MCAPI void* $ctor(::ResourceLocation const& rhs);
90#endif
91
92 MCAPI void* $ctor(::Core::PathView path, ::ResourceFileSystem fileSystem);
93 // NOLINTEND
94
95public:
96 // destructor thunk
97 // NOLINTBEGIN
98 MCFOLD void $dtor();
99 // NOLINTEND
100};
Definition PathBuffer.h:8
Definition PathView.h:19
Definition HashedString.h:5
MCAPI ::Core::PathBuffer<::std::string > getFullPath() const
MCAPI void setRelativePath(::Core::PathBuffer<::std::string > const &path)
Definition ResourceLocation.h:23