LeviLamina
Loading...
Searching...
No Matches
ComponentItemDataLoader.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/puv/LoadResult.h"
7#include "mc/resources/JsonBetaState.h"
8
9// auto generated forward declare list
10// clang-format off
12class SemVersion;
18namespace Json { class Value; }
19namespace cereal { struct ReflectionCtx; }
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
31 // NOLINTEND
32
33public:
34 // prevent constructor by default
38
39public:
40 // member functions
41 // NOLINTBEGIN
43 ::SemVersion const& documentVersion,
44 ::IPackLoadContext& packLoadContext,
45 bool isServer,
47 ::std::function<void(::Puv::LoadResult<::ComponentItemDataAll_Latest>&)> validatorFn
48 );
49
50 MCAPI ::Puv::LoadResult<::BetaItemComponentData>
51 _parseBeta(::Json::Value const& input, ::JsonBetaState canUseBeta) const;
52
53 MCAPI ::Puv::LoadResult<::ComponentItemData_v1_21_60> _parseCereal(::Json::Value const& input) const;
54
55 MCAPI ::std::optional<::LegacyEventItemComponentData> _parseEvents(::Json::Value const& input) const;
56
57 MCAPI ::std::pair<::ComponentItemData_Legacy, bool> _parseLegacyComponents(::Json::Value input) const;
58
59 MCAPI ::Puv::LoadResult<::ComponentItemDataAll_Latest>
60 load(::Json::Value const& input, ::JsonBetaState canUseBeta) const;
61
63 // NOLINTEND
64
65public:
66 // constructor thunks
67 // NOLINTBEGIN
68 MCAPI void* $ctor(
69 ::SemVersion const& documentVersion,
70 ::IPackLoadContext& packLoadContext,
71 bool isServer,
73 ::std::function<void(::Puv::LoadResult<::ComponentItemDataAll_Latest>&)> validatorFn
74 );
75 // NOLINTEND
76
77public:
78 // destructor thunk
79 // NOLINTBEGIN
80 MCAPI void $dtor();
81 // NOLINTEND
82};
Definition ComponentItemDataLoader.h:22
Definition IPackLoadContext.h:17
Definition Value.h:16
Definition LoadResult.h:8
Definition SemVersion.h:15
Definition BetaItemComponentData.h:10
Definition ComponentItemDataAll_Latest.h:5
Definition ComponentItemData_Legacy.h:5
Definition ComponentItemData_v1_21_60.h:12
Definition LegacyEventItemComponentData.h:10
Definition ReflectionCtx.h:11
Definition ctx.h:5
Definition Alias.h:14