Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
JsonMergeStrategy.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/resources/ResourcePackMergeStrategy.h"
7
8// auto generated forward declare list
9// clang-format off
11namespace Json { class Reader; }
12namespace Json { class Value; }
13// clang-format on
14
15class JsonMergeStrategy : public ::ResourcePackMergeStrategy {
16public:
17 // member variables
18 // NOLINTBEGIN
20 // NOLINTEND
21
22public:
23 // prevent constructor by default
24 JsonMergeStrategy& operator=(JsonMergeStrategy const&);
25 JsonMergeStrategy(JsonMergeStrategy const&);
26 JsonMergeStrategy();
27
28public:
29 // virtual functions
30 // NOLINTBEGIN
31 virtual void mergeFiles(::std::vector<::LoadedResourceData> const& fileStack) /*override*/;
32
33#ifdef LL_PLAT_S
34 virtual bool _parseJson(::Json::Reader&, ::std::string const&, ::Json::Value&) const;
35#else // LL_PLAT_C
36 virtual bool _parseJson(::Json::Reader& reader, ::std::string const& fileContent, ::Json::Value& root) const;
37#endif
38
39#ifdef LL_PLAT_S
40 virtual void _preMergeTransform(::Json::Value&, ::LoadedResourceData const&);
41#else // LL_PLAT_C
42 virtual void _preMergeTransform(::Json::Value& root, ::LoadedResourceData const& context);
43#endif
44
45 virtual void _preMergePacketTransform(int const);
46
47#ifdef LL_PLAT_S
48 virtual bool _preMergeObjectTransform(::Json::Value&, ::Json::Value const&);
49#else // LL_PLAT_C
50 virtual bool _preMergeObjectTransform(::Json::Value& root, ::Json::Value const& object);
51#endif
52
53 // NOLINTEND
54
55public:
56 // member functions
57 // NOLINTBEGIN
58#ifdef LL_PLAT_C
59 MCNAPI void _recursiveMerge(::Json::Value& root, ::Json::Value const& object);
60#endif
61 // NOLINTEND
62
63public:
64 // virtual function thunks
65 // NOLINTBEGIN
66#ifdef LL_PLAT_C
67 MCNAPI void $mergeFiles(::std::vector<::LoadedResourceData> const& fileStack);
68
69 MCNAPI bool $_parseJson(::Json::Reader& reader, ::std::string const& fileContent, ::Json::Value& root) const;
70
71 MCNAPI void $_preMergeTransform(::Json::Value& root, ::LoadedResourceData const& context);
72
73 MCNAPI void $_preMergePacketTransform(int const);
74
75 MCNAPI bool $_preMergeObjectTransform(::Json::Value& root, ::Json::Value const& object);
76#endif
77
78
79 // NOLINTEND
80
81public:
82 // vftables
83 // NOLINTBEGIN
84 MCNAPI static void** $vftable();
85 // NOLINTEND
86};
static MCAPI void ** $vftable()
Definition Reader.h:11
Definition Value.h:16
Definition LoadedResourceData.h:5
Definition ResourcePackMergeStrategy.h:10
Definition context.h:5
Definition Alias.h:14