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
58 struct AssetCollection {
59 public:
60 // member variables
61 // NOLINTBEGIN
67 // NOLINTEND
68
69 public:
70 // prevent constructor by default
71 AssetCollection& operator=(AssetCollection const&);
72 AssetCollection(AssetCollection const&);
73 AssetCollection();
74 };
75
76public:
77 // member variables
78 // NOLINTBEGIN
82 // NOLINTEND
83
84public:
85 // prevent constructor by default
86 LinkedAssetValidator& operator=(LinkedAssetValidator const&);
87 LinkedAssetValidator(LinkedAssetValidator const&);
88 LinkedAssetValidator();
89
90public:
91 // virtual functions
92 // NOLINTBEGIN
93 virtual ~LinkedAssetValidator() /*override*/;
94 // NOLINTEND
95
96public:
97 // member functions
98 // NOLINTBEGIN
99 MCNAPI explicit LinkedAssetValidator(bool isClient);
100
102
103#ifdef LL_PLAT_C
104 MCNAPI void addFile(int assetType, ::std::string const& filepath);
105#endif
106
107 MCNAPI void addFileReference(int assetType, ::std::string const& filepath, ::std::string contextString);
108
109 MCNAPI void addIdentifier(int assetType, ::std::string const& identifier);
110
111 MCNAPI void addReference(int assetType, ::std::string const& identifier, ::std::string contextString);
112
113 MCNAPI void reset();
114
115#ifdef LL_PLAT_C
116 MCNAPI ::std::vector<::std::string> validateLinkedAssets();
117#endif
118 // NOLINTEND
119
120public:
121 // static variables
122 // NOLINTBEGIN
123 MCNAPI static ::std::weak_ptr<::LinkedAssetValidator::AssetCollection>& mPerThreadAssetCollection();
124 // NOLINTEND
125
126public:
127 // constructor thunks
128 // NOLINTBEGIN
129 MCNAPI void* $ctor(bool isClient);
130 // NOLINTEND
131
132public:
133 // destructor thunk
134 // NOLINTBEGIN
135 MCNAPI void $dtor();
136 // NOLINTEND
137
138public:
139 // vftables
140 // NOLINTBEGIN
141 MCNAPI static void** $vftable();
142 // NOLINTEND
143};
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 $dtor()
MCAPI void addIdentifier(int assetType, ::std::string const &identifier)
static MCAPI ::std::weak_ptr<::LinkedAssetValidator::AssetCollection > & mPerThreadAssetCollection()
Definition LinkedAssetValidator.h:58
Definition LinkedAssetValidator.h:40
Definition LinkedAssetValidator.h:25
Definition LinkedAssetValidator.h:42
Definition Alias.h:14