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#ifdef LL_PLAT_C
71 MCAPI ::std::string getFileSystemName() const;
72#endif
73
74 MCAPI ::Core::PathBuffer<::std::string> getFullPath() const;
75
76#ifdef LL_PLAT_C
77 MCAPI ::HashedString getHashedPath() const;
78
79 MCAPI bool operator==(::ResourceLocation const& rhs) const;
80#endif
81
82 MCAPI void setRelativePath(::Core::PathBuffer<::std::string> const& path);
83
84 MCAPI ~ResourceLocation();
85 // NOLINTEND
86
87public:
88 // constructor thunks
89 // NOLINTBEGIN
90 MCAPI void* $ctor(::Core::PathView path);
91
92#ifdef LL_PLAT_C
93 MCAPI void* $ctor(::ResourceLocation const& rhs);
94#endif
95
96 MCAPI void* $ctor(::Core::PathView path, ::ResourceFileSystem fileSystem);
97 // NOLINTEND
98
99public:
100 // destructor thunk
101 // NOLINTBEGIN
102 MCFOLD void $dtor();
103 // NOLINTEND
104};
Definition PathBuffer.h:8
Definition PathView.h:19
Definition HashedString.h:5
Definition ResourceLocation.h:23