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
48#else // LL_PLAT_C
49public:
50 // prevent constructor by default
51 ResourceLocation& operator=(ResourceLocation const&);
52
53#endif
54public:
55 // member functions
56 // NOLINTBEGIN
57 MCAPI ResourceLocation();
58
59 MCAPI explicit ResourceLocation(::Core::PathView path);
60
61#ifdef LL_PLAT_C
62 MCAPI ResourceLocation(::ResourceLocation const& rhs);
63#endif
64
65 MCAPI ResourceLocation(::Core::PathView path, ::ResourceFileSystem fileSystem);
66
67 MCAPI ::Core::PathBuffer<::std::string> getFullPath() const;
68
69#ifdef LL_PLAT_C
70 MCAPI ::HashedString getHashedPath() const;
71#endif
72
73 MCFOLD ::Core::PathBuffer<::std::string> const& getRelativePath() const;
74
75#ifdef LL_PLAT_C
76 MCAPI bool operator==(::ResourceLocation const& rhs) const;
77#endif
78
79 MCAPI void setRelativePath(::Core::PathBuffer<::std::string> const& path);
80
81 MCAPI ~ResourceLocation();
82 // NOLINTEND
83
84public:
85 // static functions
86 // NOLINTBEGIN
87#ifdef LL_PLAT_C
88 MCAPI static ::ResourceLocation const& getEmptyLocation();
89#endif
90 // NOLINTEND
91
92public:
93 // constructor thunks
94 // NOLINTBEGIN
95 MCAPI void* $ctor();
96
97 MCAPI void* $ctor(::Core::PathView path);
98
99#ifdef LL_PLAT_C
100 MCAPI void* $ctor(::ResourceLocation const& rhs);
101#endif
102
103 MCAPI void* $ctor(::Core::PathView path, ::ResourceFileSystem fileSystem);
104 // NOLINTEND
105
106public:
107 // destructor thunk
108 // NOLINTBEGIN
109 MCFOLD void $dtor();
110 // NOLINTEND
111};
Definition PathBuffer.h:8
Definition PathView.h:19
Definition HashedString.h:5
Definition ResourceLocation.h:23