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
36 public:
37 // member functions
38 // NOLINTBEGIN
39 MCNAPI ItemTypeList();
40
41 MCNAPI ~ItemTypeList();
42 // NOLINTEND
43
44 public:
45 // constructor thunks
46 // NOLINTBEGIN
47 MCNAPI void* $ctor();
48 // NOLINTEND
49
50 public:
51 // destructor thunk
52 // NOLINTBEGIN
53 MCNAPI void $dtor();
54 // NOLINTEND
55 };
56
57 struct ObjectTypeList {
58 public:
59 // member variables
60 // NOLINTBEGIN
64 // NOLINTEND
65
66 public:
67 // prevent constructor by default
68 ObjectTypeList& operator=(ObjectTypeList const&);
69 ObjectTypeList(ObjectTypeList const&);
70 ObjectTypeList();
71
72 public:
73 // member functions
74 // NOLINTBEGIN
76 // NOLINTEND
77
78 public:
79 // destructor thunk
80 // NOLINTBEGIN
81 MCNAPI void $dtor();
82 // NOLINTEND
83 };
84
85public:
86 // member variables
87 // NOLINTBEGIN
93 // NOLINTEND
94
95public:
96 // prevent constructor by default
97 GameContext& operator=(GameContext const&);
98 GameContext(GameContext const&);
99 GameContext();
100
101public:
102 // member functions
103 // NOLINTBEGIN
105 ::std::unordered_map<::std::string, ::std::vector<::std::string>> mobs,
108 ::std::function<::ILevel*()> levelGetter
109 );
110
111 MCNAPI ::Json::Value blocksToJson() const;
112
113 MCNAPI ::Json::Value getFilepathJson(::std::string const& filePath) const;
114
115 MCNAPI ::Json::Value getTutorialJson(::std::string const& tutorialPath) const;
116
117 MCNAPI ::Json::Value itemsToJson() const;
118
119 MCNAPI ::Json::Value mobsToJson() const;
120 // NOLINTEND
121
122public:
123 // static functions
124 // NOLINTBEGIN
125 MCNAPI static ::std::unique_ptr<::CodeBuilder::GameContext> create(::std::function<::ILevel*()> levelGetter);
126 // NOLINTEND
127
128public:
129 // constructor thunks
130 // NOLINTBEGIN
131 MCNAPI void* $ctor(
132 ::std::unordered_map<::std::string, ::std::vector<::std::string>> mobs,
135 ::std::function<::ILevel*()> levelGetter
136 );
137 // NOLINTEND
138};
139
140} // namespace CodeBuilder
MCAPI::Json::Value getTutorialJson(::std::string const &tutorialPath) 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:214
Definition Value.h:16
Definition GameContext.h:22
Definition GameContext.h:57
Definition Alias.h:14