LeviLamina
Loading...
Searching...
No Matches
LinkedAssetValidator.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7
8class LinkedAssetValidator : public ::Bedrock::EnableNonOwnerReferences {
9public:
10 // LinkedAssetValidator inner types declare
11 // clang-format off
12 struct KnownObject;
13 struct KnownObjectHasher;
14 struct Reference;
15 struct AssetCollection;
16 // clang-format on
17
18 // LinkedAssetValidator inner types define
19 enum class ValidatorStatus : uchar {
20 New = 0,
21 Loaded = 1,
22 Validated = 2,
23 };
24
25 struct KnownObject {
26 public:
27 // member variables
28 // NOLINTBEGIN
31 // NOLINTEND
32
33 public:
34 // prevent constructor by default
35 KnownObject& operator=(KnownObject const&);
36 KnownObject(KnownObject const&);
37 KnownObject();
38 };
39
41
42 struct Reference {
43 public:
44 // member variables
45 // NOLINTBEGIN
49 // NOLINTEND
50
51 public:
52 // prevent constructor by default
53 Reference& operator=(Reference const&);
54 Reference(Reference const&);
55 Reference();
56
57 public:
58 // member functions
59 // NOLINTBEGIN
60 MCNAPI ~Reference();
61 // NOLINTEND
62
63 public:
64 // destructor thunk
65 // NOLINTBEGIN
66 MCNAPI void $dtor();
67 // NOLINTEND
68 };
69
70 struct AssetCollection {
71 public:
72 // member variables
73 // NOLINTBEGIN
79 // NOLINTEND
80
81 public:
82 // prevent constructor by default
83 AssetCollection& operator=(AssetCollection const&);
84 AssetCollection(AssetCollection const&);
85 AssetCollection();
86
87 public:
88 // member functions
89 // NOLINTBEGIN
91 // NOLINTEND
92
93 public:
94 // destructor thunk
95 // NOLINTBEGIN
96 MCNAPI void $dtor();
97 // NOLINTEND
98 };
99
100public:
101 // member variables
102 // NOLINTBEGIN
106 // NOLINTEND
107
108public:
109 // prevent constructor by default
110 LinkedAssetValidator& operator=(LinkedAssetValidator const&);
111 LinkedAssetValidator(LinkedAssetValidator const&);
112 LinkedAssetValidator();
113
114public:
115 // member functions
116 // NOLINTBEGIN
117 MCNAPI explicit LinkedAssetValidator(bool isClient);
118
120
121#ifdef LL_PLAT_C
122 MCNAPI void addFile(int assetType, ::std::string const& filepath);
123#endif
124
125 MCNAPI void addFileReference(int assetType, ::std::string const& filepath, ::std::string contextString);
126
127 MCNAPI void addIdentifier(int assetType, ::std::string const& identifier);
128
129 MCNAPI void addReference(int assetType, ::std::string const& identifier, ::std::string contextString);
130
131#ifdef LL_PLAT_C
132 MCNAPI void finishLoading();
133
134 MCNAPI bool isClient() const;
135#endif
136
137 MCNAPI void reset();
138
139#ifdef LL_PLAT_C
140 MCNAPI ::std::vector<::std::string> validateLinkedAssets();
141#endif
142 // NOLINTEND
143
144public:
145 // static variables
146 // NOLINTBEGIN
147 MCNAPI static ::std::weak_ptr<::LinkedAssetValidator::AssetCollection>& mPerThreadAssetCollection();
148 // NOLINTEND
149
150public:
151 // constructor thunks
152 // NOLINTBEGIN
153 MCNAPI void* $ctor(bool isClient);
154 // NOLINTEND
155
156public:
157 // vftables
158 // NOLINTBEGIN
159 MCNAPI static void** $vftable();
160 // NOLINTEND
161};
Definition EnableNonOwnerReferences.h:7
MCAPI void addReference(int assetType, ::std::string const &identifier, ::std::string contextString)
static MCAPI void ** $vftable()
MCAPI void reset()
MCAPI void _initThreadAssetCollection()
MCAPI void * $ctor(bool isClient)
MCAPI LinkedAssetValidator(bool isClient)
MCAPI void addFileReference(int assetType, ::std::string const &filepath, ::std::string contextString)
MCAPI void addIdentifier(int assetType, ::std::string const &identifier)
static MCAPI ::std::weak_ptr<::LinkedAssetValidator::AssetCollection > & mPerThreadAssetCollection()
Definition LinkedAssetValidator.h:70
Definition LinkedAssetValidator.h:40
Definition LinkedAssetValidator.h:25
Definition LinkedAssetValidator.h:42
Definition Alias.h:14