LeviLamina
Loading...
Searching...
No Matches
_HeaderOutputPredefine.h
1#pragma once
2
3// clang-format off
4
5#ifdef _MSC_VER
6#pragma warning(disable : 4099) // for MOJANG : type name first seen using 'class' now seen using 'struct'
7#pragma warning(disable : 4201) // for MOJANG : nonstandard extension used : nameless struct/union
8#pragma warning(disable : 4373) // for MOJANG : override virtual function with different const/volatile params
9#endif
10
11#include "ll/api/base/Macro.h"
12
13#define MCAPI LL_SHARED_IMPORT
14#define MCTAPI template<> MCAPI
15#define MCFOLD MCAPI /*Identical COMDAT Folding*/
16#define MCNAPI [[deprecated("This API is not available. Open an issue if you need it. "\
17 "https://github.com/LiteLDev/mcapi-requests/issues/new")]] MCAPI
18
19#include <algorithm> // STL general algorithms
20#include <array> // STL array container
21#include <bitset> // STL bitset container
22#include <cctype> // Character handling functions
23#include <cerrno> // C Error codes
24#include <chrono> // C++11 Time library
25#include <clocale> // C localization library
26#include <cmath> // Common mathematics functions
27#include <complex> // Complex number type
28#include <condition_variable> // condition variable
29#include <cstdio> // C Standard Input/Output library
30#include <cstdlib> // C Standard General Utilities Library
31#include <cstring> // C string handling
32#include <ctime> // C Time library
33#include <cwchar> // Wide character type
34#include <cwctype> // Wide character classification
35#include <deque> // STL double ended queue container
36#include <exception> // Exception handling classes
37#include <filesystem> // STL file system
38#include <forward_list> // STL forward list container
39#include <fstream> // File stream classes
40#include <functional> // STL Function objects
41#include <iomanip> // Input/Output manipulators
42#include <ios> // Base input/output stream classes
43#include <iosfwd> // Input/Output forward declarations
44#include <iostream> // Standard Input/Output stream objects
45#include <istream> // Basic input stream classes
46#include <limits> // Numeric limits
47#include <list> // STL linear list container
48#include <map> // STL map container
49#include <memory> // STL unique_ptr, shared_ptr, weak_ptr
50#include <mutex> // STL mutual exclusion primitives
51#include <numbers> // numbers standard header
52#include <optional> // STL optional type
53#include <ostream> // Basic output stream classes
54#include <queue> // STL queue and priority_queue container
55#include <random> // C++11 Random numbers
56#include <set> // STL set and multiset container
57#include <shared_mutex> // STL shared mutual exclusion primitives
58#include <sstream> // String stream classes
59#include <stack> // STL stack container
60#include <stdexcept> // Standard exception objects
61#include <streambuf> // Stream buffer classes
62#include <string> // String class
63#include <string_view> // STL string_view type
64#include <unordered_map> // STL unordered map container
65#include <unordered_set> // STL unordered set container
66#include <utility> // STL utility components
67#include <variant> // STL variant type
68#include <vector> // STL dynamic array container
69#include <future> // STL future
70#include <regex> // Regular expression library
71#include <any> // STL any type
72
73// STL expected for C++23
74#if LL_HAS_CXX23
75#include <expected>
76#endif
77
78#include "entt/entt.hpp" // Entity Component System Library
79#include "entt/fwd.hpp" // Entity Component Forward Declarations
80#include "glm/glm.hpp" // OpenGL Mathematics Library
81#include "glm/ext.hpp" // OpenGL Mathematics Library
82#include "gsl/gsl" // Guideline Support Library
83
84// LevelDB C++ Library
85#include "leveldb/c.h"
86#include "leveldb/cache.h"
87#include "leveldb/comparator.h"
88#include "leveldb/db.h"
89#include "leveldb/dumpfile.h"
90#include "leveldb/env.h"
91#include "leveldb/filter_policy.h"
92#include "leveldb/iterator.h"
93#include "leveldb/options.h"
94#include "leveldb/slice.h"
95#include "leveldb/status.h"
96#include "leveldb/table.h"
97#include "leveldb/table_builder.h"
98#include "leveldb/write_batch.h"
99
100// RapidJSON C++ Library
101#include "rapidjson/document.h"
102#include "rapidjson/encodings.h"
103#include "rapidjson/error/en.h"
104#include "rapidjson/filereadstream.h"
105#include "rapidjson/filewritestream.h"
106#include "rapidjson/pointer.h"
107#include "rapidjson/prettywriter.h"
108#include "rapidjson/rapidjson.h"
109#include "rapidjson/reader.h"
110#include "rapidjson/schema.h"
111#include "rapidjson/stringbuffer.h"
112#include "rapidjson/writer.h"
113
114// type_safe C++ Library
115#include "type_safe/strong_typedef.hpp"
116
117// expected_lite C++ Library
118#ifdef _MSC_VER
119#pragma warning(push)
120#pragma warning(disable : 4702)
121#endif
122#define nsel_CONFIG_SELECT_EXPECTED 1
123#include "nonstd/expected.hpp"
124#ifdef _MSC_VER
125#pragma warning(pop)
126#endif
127
128#include "ll/api/base/Alias.h"
129#include "ll/api/base/StdInt.h"
130
131// fmt C++ Library
132#include "fmt/format.h"
133#include "fmt/std.h"
134
135// moodycamel::ConcurrentQueue C++ Library
136#include "concurrentqueue.h"
137
138// stb C++ Library
139#include "stb_truetype.h"
140
141struct HWND__;
142struct HKEY__;
143struct HICON__;
144struct tagRECT;
145struct _TP_CALLBACK_INSTANCE;
146struct _TP_WAIT;
147struct _TP_WORK;
148struct _TP_TIMER;
149typedef long HRESULT;
150enum _WINHTTP_WEB_SOCKET_BUFFER_TYPE;
151struct in6_addr;
152struct in_addr;
153struct sockaddr;
154struct addrinfo;
155struct _IP_ADAPTER_PREFIX_XP;
156struct sockaddr_storage;
157struct sockaddr_in;
158struct sockaddr_in6;
159struct evp_md_ctx_st;
160struct asn1_string_st;
161struct bio_st;
162struct XUser;
163struct tagPOINT;
164struct _INITIALIZE_OPTIONS;
165struct HC_CALL;
166struct tagWNDCLASSEXW;
167struct HINSTANCE__;
168
169// DirectX definitions
170typedef enum D3D_FEATURE_LEVEL;
171typedef enum DXGI_SWAP_EFFECT;
172typedef enum DXGI_FORMAT;
173typedef enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS;
174typedef enum D3D_SHADER_MODEL;
175typedef enum D3D_DRIVER_TYPE;
176typedef enum D3D12_RESOURCE_STATES;
177typedef enum D3D12_RESOURCE_FLAGS;
178struct IDXGISwapChain3;
179struct ID3D11Texture2D;
180struct ID3D11Device;
181struct ID3D11DeviceContext;
182struct ID3DUserDefinedAnnotation;
183struct ID3D11InfoQueue;
184struct ID3D11RenderTargetView;
185struct ID3D11DepthStencilView;
186struct ID3D11BlendState;
187struct ID3D11DepthStencilState;
188struct ID3D11InputLayout;
189struct ID3D11RasterizerState;
190struct ID3D11SamplerState;
191struct IUnknown;
192struct ID3D11ShaderResourceView;
193struct ID3D11UnorderedAccessView;
194struct ID3D12DescriptorHeap;
195struct ID3D12Resource;
196struct ID3D12Device;
197struct ID3D12Device5;
198struct ID3D12CommandSignature;
199struct D3D12_CPU_DESCRIPTOR_HANDLE;
200// Because these are used in TypedStorage, we need to define them here to avoid compilation errors.
201#ifndef D3D12_RAYTRACING_GEOMETRY_DESC
203#endif
204#ifndef D3D12_FEATURE_DATA_ARCHITECTURE
206#endif
207#ifndef D3D12_FEATURE_DATA_D3D12_OPTIONS
209#endif
210
211namespace GameInput::v2 {
212 class IGameInput;
213}
214namespace Bedrock {
215 template<typename T>
216 struct ComAdapter {
217 std::unique_ptr<T>* mParent;
218 T* mPtr;
219
220 struct Deleter {
221 void operator()(T* ptr);
222 };
223 };
224}
225struct APP_LOCAL_DEVICE_ID;
226namespace winrt
227{
228 struct event_token;
229 namespace Windows
230 {
231 namespace UI::Text::Core
232 {
233 struct CoreTextEditContext;
234 }
235
236 namespace ApplicationModel::DataTransfer
237 {
238 struct DataTransferManager;
239 }
240 }
241}
242namespace DirectX {
243 struct XMMATRIX;
244}
245
246#include "mc/deps/core/utility/optional_ref.h" // replace optional<reference_wrapper<>>
247#include "mc/platform/brstd/function_ref.h" // function reference
248#include "mc/math/vector/Vecs.h" // for vector types
249
250template <typename T0, typename T1>
251class AutomaticID {
252public:
253 T1 mValue;
254
255 [[nodiscard]] constexpr AutomaticID() : mValue(0) {}
256
257 [[nodiscard]] constexpr AutomaticID(T1 x) : mValue(x) {}
258
259 [[nodiscard]] constexpr operator T1() const { return mValue; }
260
261 [[nodiscard]] inline bool operator==(AutomaticID const& other) const { return mValue == other.mValue; }
262
263 [[nodiscard]] inline bool operator==(T1 const& other) const { return mValue == other; }
264
265 [[nodiscard]] inline std::strong_ordering operator<=>(AutomaticID const& other) const { return mValue <=> other.mValue; }
266
267 [[nodiscard]] inline std::strong_ordering operator<=>(T1 const& other) const { return mValue <=> other; }
268};
269template <typename A, typename T>
270struct std::hash<AutomaticID<A, T>> {
271 size_t operator()(AutomaticID<A, T> const& dimId) const { return static_cast<size_t>(dimId.mValue); }
272};
273class Dimension;
274using DimensionType = AutomaticID<Dimension, int>;
275
276struct RecipeNetIdTag;
279struct ItemStackNetIdTag;
282
283template <typename T0, typename T1 = uint, int T2 = 0>
284class TypedClientNetId;
285template <typename T0, typename T1 = uint, int T2 = 0>
286class TypedServerNetId;
287template <typename T0, typename T1 = uint, int T2 = 0>
288class TypedRuntimeId;
289
290using RecipeNetId = TypedServerNetId<RecipeNetIdTag>;
291using CreativeItemNetId = TypedServerNetId<CreativeItemNetIdTag>;
292using ContainerRuntimeId = TypedRuntimeId<ContainerRuntimeIdTag>;
293using ItemStackNetId = TypedServerNetId<ItemStackNetIdTag, int>;
294using ItemStackRequestId = TypedClientNetId<ItemStackRequestIdTag, int>;
295using ItemStackLegacyRequestId = TypedClientNetId<ItemStackLegacyRequestIdTag, int>;
296
297class BlockType;
298template <typename T0>
299class ActorBlockBase;
300using ActorBlock = ActorBlockBase<BlockType>;
301
302template<int>
304
305template<typename T>
307public:
308 T* mBegin;
309 T* mEnd;
310 class iterator {
311 public:
312 T* mPtr;
313 };
314};
315
316namespace Bedrock {
317template <typename T, typename Err = std::error_code>
318class Result;
319template <typename T>
320class NonOwnerPointer;
321template <typename T>
322using NotNullNonOwnerPtr = gsl::not_null<NonOwnerPointer<T>>;
323
324template <typename T, typename... Args>
325class ImplBase {
326public:
327 virtual ~ImplBase() = default;
328};
329
330template <typename T, typename U, typename A, typename M>
332namespace Detail {
333template <typename T, typename U = void>
335}
336
337namespace Threading {
338template <typename T, typename Alloc = std::allocator<T>>
340}
341}
342
343namespace Core {
344template <typename... Params>
346public:
347 class Listener {};
348};
349template <typename TKey, typename TValue, typename TValuePtr, typename... TNewInstanceArgs>
350class LRUCache {
351public:
352 void* mUnk[14];
353};
354}
355
356namespace Puv {
357template <typename From, typename To, typename CustomData>
359
360template <typename T0, typename T1, typename T2, typename T3>
362}
363
364namespace Social {
365enum class SignInResult;
366}
367
368namespace NetherNet::Utils {
369template <typename T>
371public:
372 class View {};
373};
374}
375
376namespace rtc {
377template<class T, size_t N = size_t(-4711ll)>
379}
380
381template <typename T0>
383using http_string = std::basic_string<char, std::char_traits<char>, class http_stl_allocator<char>>;
384using http_wstring = std::basic_string<wchar_t, std::char_traits<wchar_t>, class http_stl_allocator<wchar_t>>;
385
386namespace asio::ssl {
387class verify_context;
388}
389
390namespace leveldb {
391class Compressor;
392class DecompressAllocator;
393}
394
395// clang-format on
Definition ActorBlockBase.h:6
Definition _HeaderOutputPredefine.h:251
Definition _HeaderOutputPredefine.h:331
Definition _HeaderOutputPredefine.h:325
Definition _HeaderOutputPredefine.h:339
Definition BlockType.h:84
Definition _HeaderOutputPredefine.h:347
Definition _HeaderOutputPredefine.h:345
Definition _HeaderOutputPredefine.h:350
Definition Dimension.h:88
Definition _HeaderOutputPredefine.h:372
Definition _HeaderOutputPredefine.h:370
Definition _HeaderOutputPredefine.h:303
Definition _HeaderOutputPredefine.h:358
Definition _HeaderOutputPredefine.h:361
Definition TypedClientNetId.h:6
Definition TypedRuntimeId.h:6
Definition TypedServerNetId.h:6
Definition _HeaderOutputPredefine.h:310
Definition _HeaderOutputPredefine.h:306
Definition http_stl_allocator.h:6
Definition _HeaderOutputPredefine.h:378
Definition _HeaderOutputPredefine.h:220
Definition _HeaderOutputPredefine.h:216
Definition _HeaderOutputPredefine.h:334
Definition ContainerRuntimeIdTag.h:5
Definition CreativeItemNetIdTag.h:5
Definition _HeaderOutputPredefine.h:205
Definition _HeaderOutputPredefine.h:208
Definition _HeaderOutputPredefine.h:202
Definition HC_CALL.h:14
Definition ItemStackLegacyRequestIdTag.h:5
Definition ItemStackNetIdTag.h:5
Definition ItemStackRequestIdTag.h:5
Definition RecipeNetIdTag.h:5