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 <cstddef> // Standard size and pointer difference types
30#include <cstdio> // C Standard Input/Output library
31#include <cstdlib> // C Standard General Utilities Library
32#include <cstring> // C string handling
33#include <ctime> // C Time library
34#include <cwchar> // Wide character type
35#include <cwctype> // Wide character classification
36#include <deque> // STL double ended queue container
37#include <exception> // Exception handling classes
38#include <filesystem> // STL file system
39#include <forward_list> // STL forward list container
40#include <fstream> // File stream classes
41#include <functional> // STL Function objects
42#include <iomanip> // Input/Output manipulators
43#include <ios> // Base input/output stream classes
44#include <iosfwd> // Input/Output forward declarations
45#include <iostream> // Standard Input/Output stream objects
46#include <istream> // Basic input stream classes
47#include <limits> // Numeric limits
48#include <list> // STL linear list container
49#include <map> // STL map container
50#include <memory> // STL unique_ptr, shared_ptr, weak_ptr
51#include <mutex> // STL mutual exclusion primitives
52#include <numbers> // numbers standard header
53#include <optional> // STL optional type
54#include <ostream> // Basic output stream classes
55#include <queue> // STL queue and priority_queue container
56#include <random> // C++11 Random numbers
57#include <set> // STL set and multiset container
58#include <shared_mutex> // STL shared mutual exclusion primitives
59#include <sstream> // String stream classes
60#include <stack> // STL stack container
61#include <stdexcept> // Standard exception objects
62#include <streambuf> // Stream buffer classes
63#include <string> // String class
64#include <string_view> // STL string_view type
65#include <unordered_map> // STL unordered map container
66#include <unordered_set> // STL unordered set container
67#include <utility> // STL utility components
68#include <variant> // STL variant type
69#include <vector> // STL dynamic array container
70#include <future> // STL future
71#include <regex> // Regular expression library
72#include <any> // STL any type
73
74// STL expected for C++23
75#if LL_HAS_CXX23
76#include <expected>
77#endif
78
79#include "entt/entt.hpp" // Entity Component System Library
80#include "entt/fwd.hpp" // Entity Component Forward Declarations
81#include "glm/glm.hpp" // OpenGL Mathematics Library
82#include "glm/ext.hpp" // OpenGL Mathematics Library
83#include "gsl/gsl" // Guideline Support Library
84
85// LevelDB C++ Library
86#include "leveldb/c.h"
87#include "leveldb/cache.h"
88#include "leveldb/comparator.h"
89#include "leveldb/db.h"
90#include "leveldb/dumpfile.h"
91#include "leveldb/env.h"
92#include "leveldb/filter_policy.h"
93#include "leveldb/iterator.h"
94#include "leveldb/options.h"
95#include "leveldb/slice.h"
96#include "leveldb/status.h"
97#include "leveldb/table.h"
98#include "leveldb/table_builder.h"
99#include "leveldb/write_batch.h"
100
101// RapidJSON C++ Library
102#include "rapidjson/document.h"
103#include "rapidjson/encodings.h"
104#include "rapidjson/error/en.h"
105#include "rapidjson/filereadstream.h"
106#include "rapidjson/filewritestream.h"
107#include "rapidjson/pointer.h"
108#include "rapidjson/prettywriter.h"
109#include "rapidjson/rapidjson.h"
110#include "rapidjson/reader.h"
111#include "rapidjson/schema.h"
112#include "rapidjson/stringbuffer.h"
113#include "rapidjson/writer.h"
114
115// type_safe C++ Library
116#include "type_safe/strong_typedef.hpp"
117
118// expected_lite C++ Library
119#ifdef _MSC_VER
120#pragma warning(push)
121#pragma warning(disable : 4702)
122#endif
123#define nsel_CONFIG_SELECT_EXPECTED 1
124#include "nonstd/expected.hpp"
125#ifdef _MSC_VER
126#pragma warning(pop)
127#endif
128
129#include "ll/api/base/Alias.h"
130#include "ll/api/base/StdInt.h"
131
132// fmt C++ Library
133#include "fmt/format.h"
134#include "fmt/std.h"
135
136// moodycamel::ConcurrentQueue C++ Library
137#include "concurrentqueue.h"
138
139// stb C++ Library
140#include "stb_truetype.h"
141
142struct HWND__;
143struct HKEY__;
144struct HICON__;
145struct tagRECT;
146struct _TP_CALLBACK_INSTANCE;
147struct _TP_WAIT;
148struct _TP_WORK;
149struct _TP_TIMER;
150typedef long HRESULT;
151enum _WINHTTP_WEB_SOCKET_BUFFER_TYPE;
152struct in6_addr;
153struct in_addr;
154struct sockaddr;
155struct addrinfo;
156struct _IP_ADAPTER_PREFIX_XP;
157struct sockaddr_storage;
158struct sockaddr_in;
159struct sockaddr_in6;
160struct evp_md_ctx_st;
161struct asn1_string_st;
162struct bio_st;
163struct XUser;
164struct tagPOINT;
165struct _INITIALIZE_OPTIONS;
166struct HC_CALL;
167struct tagWNDCLASSEXW;
168struct HINSTANCE__;
169namespace ll {
170 template <size_t A, size_t S>
171 struct TypedStorageType<A, S, ::tagPOINT> {
172 using Type = UntypedStorage<A, S>;
173 };
174 template <size_t A, size_t S>
175 struct TypedStorageType<A, S, ::std::unique_ptr<::evp_md_ctx_st>> {
176 using Type = UntypedStorage<A, S>;
177 };
178 class type_id_ref;
179}
180
181// cgltf exposes pointers to this internal tokenizer type.
182struct jsmntok_t;
183
184namespace Bedrock {
185 template <typename Category, typename Type>
186 ::ll::type_id_ref typeid_storage_impl();
187}
188
189// DirectX definitions
190typedef enum D3D_FEATURE_LEVEL;
191typedef enum DXGI_SWAP_EFFECT;
192typedef enum DXGI_FORMAT;
193typedef enum D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BUILD_FLAGS;
194typedef enum D3D_SHADER_MODEL;
195typedef enum D3D_DRIVER_TYPE;
196typedef enum D3D12_RESOURCE_STATES;
197typedef enum D3D12_RESOURCE_FLAGS;
198struct IDXGISwapChain3;
199struct ID3D11Texture2D;
200struct ID3D11Device;
201struct ID3D11DeviceContext;
202struct ID3DUserDefinedAnnotation;
203struct ID3D11InfoQueue;
204struct ID3D11RenderTargetView;
205struct ID3D11DepthStencilView;
206struct ID3D11BlendState;
207struct ID3D11DepthStencilState;
208struct ID3D11InputLayout;
209struct ID3D11RasterizerState;
210struct ID3D11SamplerState;
211struct IUnknown;
212struct ID3D11ShaderResourceView;
213struct ID3D11UnorderedAccessView;
214struct ID3D12DescriptorHeap;
215struct ID3D12Resource;
216struct ID3D12Device;
217struct ID3D12Device5;
218struct ID3D12CommandSignature;
219struct D3D12_CPU_DESCRIPTOR_HANDLE;
220// Because these are used in TypedStorage, we need to define them here to avoid compilation errors.
221#ifndef D3D12_RAYTRACING_GEOMETRY_DESC
223#endif
224#ifndef D3D12_FEATURE_DATA_ARCHITECTURE
226#endif
227#ifndef D3D12_FEATURE_DATA_D3D12_OPTIONS
229#endif
230
231// Nvidia SDK definitions
232typedef enum NVSDK_NGX_Logging_Level;
233typedef enum NVSDK_NGX_Feature;
234
235// OpenSSL definitions
236struct ssl_ctx_st;
237struct ssl_st;
238struct ssl_session_st;
239struct x509_store_ctx_st;
240struct x509_st;
241struct evp_md_st;
242struct ssl_session_st;
243
244// Ungenerated cereal definitions
245namespace cereal {
246namespace internal {
247template<typename It, typename Type>
248class ComponentStorageIterator;
249}
250}
251
252#ifndef cerealizer
253// Compile-only placeholder for generated headers; does not describe the game's ABI.
254template <typename T>
257};
258#endif
259
260namespace GameInput::v2 {
261 class IGameInput;
262}
263namespace Bedrock {
264 template<typename T>
265 struct ComAdapter {
266 std::unique_ptr<T>* mParent;
267 T* mPtr;
268
269 struct Deleter {
270 void operator()(T* ptr);
271 };
272 };
273}
274struct APP_LOCAL_DEVICE_ID;
275namespace winrt
276{
277 struct event_token;
278 namespace Windows
279 {
280 namespace UI::Text::Core
281 {
282 struct CoreTextEditContext;
283 }
284
285 namespace ApplicationModel::DataTransfer
286 {
287 struct DataTransferManager;
288 }
289 }
290}
291namespace ll {
292 template <size_t A, size_t S>
293 struct TypedStorageType<A, S, ::winrt::event_token> {
294 using Type = UntypedStorage<A, S>;
295 };
296 template <size_t A, size_t S>
297 struct TypedStorageType<A, S, ::winrt::Windows::UI::Text::Core::CoreTextEditContext> {
298 using Type = UntypedStorage<A, S>;
299 };
300 template <size_t A, size_t S>
301 struct TypedStorageType<A, S, ::winrt::Windows::ApplicationModel::DataTransfer::DataTransferManager> {
302 using Type = UntypedStorage<A, S>;
303 };
304}
305namespace DirectX {
306 struct XMMATRIX;
307}
308
309#include "mc/deps/core/utility/optional_ref.h" // replace optional<reference_wrapper<>>
310#include "mc/platform/brstd/function_ref.h" // function reference
311#include "mc/math/vector/Vecs.h" // for vector types
312
313struct RecipeNetIdTag;
316struct ItemStackNetIdTag;
319
320template <typename T0, typename T1 = uint, int T2 = 0>
321class TypedClientNetId;
322template <typename T0, typename T1 = uint, int T2 = 0>
323class TypedServerNetId;
324template <typename T0, typename T1 = uint, int T2 = 0>
325class TypedRuntimeId;
326
327using RecipeNetId = TypedServerNetId<RecipeNetIdTag>;
328using CreativeItemNetId = TypedServerNetId<CreativeItemNetIdTag>;
329using ContainerRuntimeId = TypedRuntimeId<ContainerRuntimeIdTag>;
330using ItemStackNetId = TypedServerNetId<ItemStackNetIdTag, int>;
331using ItemStackRequestId = TypedClientNetId<ItemStackRequestIdTag, int>;
332using ItemStackLegacyRequestId = TypedClientNetId<ItemStackLegacyRequestIdTag, int>;
333
334class BlockType;
335template <typename T0>
336class ActorBlockBase;
337using ActorBlock = ActorBlockBase<BlockType>;
338
339template<int>
341
342template<typename T>
344public:
345 T* mBegin;
346 T* mEnd;
347 class iterator {
348 public:
349 T* mPtr;
350 };
351};
352
353namespace Bedrock {
354template <typename T, typename Err = std::error_code>
355class Result;
356template <typename T>
357class NonOwnerPointer;
358template <typename T>
359using NotNullNonOwnerPtr = gsl::not_null<NonOwnerPointer<T>>;
360
361template <typename T, typename... Args>
362class ImplBase {
363public:
364 virtual ~ImplBase() = default;
365};
366
367template <typename T, typename U, typename A, typename M>
369namespace Detail {
370template <typename T, typename U = void>
372}
373
374namespace Threading {
375template <typename T, typename Alloc = std::allocator<T>>
377}
378}
379
380namespace Core {
381template <typename... Params>
383public:
384 class Listener {};
385};
386template <typename TKey, typename TValue, typename TValuePtr, typename... TNewInstanceArgs>
387class LRUCache {
388public:
389 void* mUnk[14];
390};
391}
392
393namespace Puv {
394template <typename From, typename To, typename CustomData>
396
397template <typename T0, typename T1, typename T2, typename T3, typename T4>
399}
400
401namespace Social {
402enum class SignInResult;
403}
404
405namespace NetherNet::Utils {
406template <typename T>
408public:
409 class View {};
410};
411}
412
413namespace rtc {
414template<class T, ::std::ptrdiff_t N = -4711>
416}
417
418namespace webrtc {
419template<class T, ::std::ptrdiff_t N = -4711>
420class ArrayView;
421}
422
423template <typename T0>
425using http_string = std::basic_string<char, std::char_traits<char>, class http_stl_allocator<char>>;
426using http_wstring = std::basic_string<wchar_t, std::char_traits<wchar_t>, class http_stl_allocator<wchar_t>>;
427
428namespace asio::ssl {
429class verify_context;
430}
431
432namespace leveldb {
433class Compressor;
434class DecompressAllocator;
435}
436
437// clang-format on
Definition ActorBlockBase.h:6
Definition _HeaderOutputPredefine.h:368
Definition _HeaderOutputPredefine.h:362
Definition _HeaderOutputPredefine.h:376
Definition BlockType.h:79
Definition _HeaderOutputPredefine.h:384
Definition _HeaderOutputPredefine.h:382
Definition _HeaderOutputPredefine.h:387
Definition _HeaderOutputPredefine.h:409
Definition _HeaderOutputPredefine.h:407
Definition _HeaderOutputPredefine.h:340
Definition _HeaderOutputPredefine.h:395
Definition _HeaderOutputPredefine.h:398
Definition TypedClientNetId.h:6
Definition TypedRuntimeId.h:6
Definition TypedServerNetId.h:6
Definition _HeaderOutputPredefine.h:347
Definition _HeaderOutputPredefine.h:343
Definition http_stl_allocator.h:6
Definition typeid_t.h:17
Definition _HeaderOutputPredefine.h:415
Definition _HeaderOutputPredefine.h:269
Definition _HeaderOutputPredefine.h:265
Definition _HeaderOutputPredefine.h:371
Definition ContainerRuntimeIdTag.h:5
Definition CreativeItemNetIdTag.h:5
Definition _HeaderOutputPredefine.h:225
Definition _HeaderOutputPredefine.h:228
Definition _HeaderOutputPredefine.h:222
Definition HC_CALL.h:14
Definition ItemStackLegacyRequestIdTag.h:5
Definition ItemStackNetIdTag.h:5
Definition ItemStackRequestIdTag.h:5
Definition RecipeNetIdTag.h:5
Definition _HeaderOutputPredefine.h:256
Definition _HeaderOutputPredefine.h:255
Definition Alias.h:97
Definition Alias.h:14