LeviLamina
Loading...
Searching...
No Matches
GameContext.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7class ILevel;
8namespace Json { class Value; }
9// clang-format on
10
11namespace CodeBuilder {
12
13class GameContext {
14public:
15 // GameContext inner types declare
16 // clang-format off
17 struct ItemTypeList;
18 struct ObjectTypeList;
19 // clang-format on
20
21 // GameContext inner types define
22 struct ItemTypeList {
23 public:
24 // member variables
25 // NOLINTBEGIN
29 // NOLINTEND
30
31 public:
32 // prevent constructor by default
33 ItemTypeList& operator=(ItemTypeList const&);
34 ItemTypeList(ItemTypeList const&);
35 ItemTypeList();
36
37 public:
38 // member functions
39 // NOLINTBEGIN
40 MCNAPI ~ItemTypeList();
41 // NOLINTEND
42
43 public:
44 // destructor thunk
45 // NOLINTBEGIN
46 MCNAPI void $dtor();
47 // NOLINTEND
48 };
49
50 struct ObjectTypeList {
51 public:
52 // member variables
53 // NOLINTBEGIN
57 // NOLINTEND
58
59 public:
60 // prevent constructor by default
61 ObjectTypeList& operator=(ObjectTypeList const&);
62 ObjectTypeList(ObjectTypeList const&);
63 ObjectTypeList();
64
65 public:
66 // member functions
67 // NOLINTBEGIN
69 // NOLINTEND
70
71 public:
72 // destructor thunk
73 // NOLINTBEGIN
74 MCNAPI void $dtor();
75 // NOLINTEND
76 };
77
78public:
79 // member variables
80 // NOLINTBEGIN
86 // NOLINTEND
87
88public:
89 // prevent constructor by default
90 GameContext& operator=(GameContext const&);
91 GameContext(GameContext const&);
92 GameContext();
93
94public:
95 // member functions
96 // NOLINTBEGIN
98 ::std::unordered_map<::std::string, ::std::vector<::std::string>> mobs,
101 ::std::function<::ILevel*()> levelGetter
102 );
103
104 MCNAPI ::Json::Value blocksToJson() const;
105
106 MCNAPI ::Json::Value getFileJson(::std::string const& filePath, ::std::string const& fileContents) const;
107
108 MCNAPI ::Json::Value getFilepathJson(::std::string const& filePath) const;
109
110 MCNAPI ::Json::Value getTutorialJson(::std::string const& tutorialPath) const;
111
112 MCNAPI ::Json::Value itemsToJson() const;
113
114 MCNAPI ::Json::Value mobsToJson() const;
115
116 MCNAPI ~GameContext();
117 // NOLINTEND
118
119public:
120 // static functions
121 // NOLINTBEGIN
122 MCNAPI static ::std::unique_ptr<::CodeBuilder::GameContext> create(::std::function<::ILevel*()> levelGetter);
123 // NOLINTEND
124
125public:
126 // constructor thunks
127 // NOLINTBEGIN
128 MCNAPI void* $ctor(
129 ::std::unordered_map<::std::string, ::std::vector<::std::string>> mobs,
132 ::std::function<::ILevel*()> levelGetter
133 );
134 // NOLINTEND
135
136public:
137 // destructor thunk
138 // NOLINTBEGIN
139 MCNAPI void $dtor();
140 // NOLINTEND
141};
142
143} // namespace CodeBuilder
MCAPI::Json::Value getTutorialJson(::std::string const &tutorialPath) const
MCAPI::Json::Value getFileJson(::std::string const &filePath, ::std::string const &fileContents) const
MCAPI::Json::Value itemsToJson() const
MCAPI void * $ctor(::std::unordered_map<::std::string, ::std::vector<::std::string > > mobs, ::CodeBuilder::GameContext::ObjectTypeList blocks, ::CodeBuilder::GameContext::ItemTypeList items, ::std::function<::ILevel *()> levelGetter)
static MCAPI ::std::unique_ptr<::CodeBuilder::GameContext > create(::std::function<::ILevel *()> levelGetter)
MCAPI::Json::Value mobsToJson() const
MCAPI::Json::Value getFilepathJson(::std::string const &filePath) const
MCAPI GameContext(::std::unordered_map<::std::string, ::std::vector<::std::string > > mobs, ::CodeBuilder::GameContext::ObjectTypeList blocks, ::CodeBuilder::GameContext::ItemTypeList items, ::std::function<::ILevel *()> levelGetter)
MCAPI::Json::Value blocksToJson() const
Definition ILevel.h:219
Definition Value.h:16
Definition GameContext.h:22
Definition GameContext.h:50
Definition Alias.h:14