2022-11-08 21:08:58 +00:00
|
|
|
#ifndef COMMON_INC
|
|
|
|
#define COMMON_INC
|
2019-03-21 20:18:31 +01:00
|
|
|
|
2023-03-01 21:27:15 +00:00
|
|
|
// clang-format off
|
|
|
|
|
2022-11-08 21:08:58 +00:00
|
|
|
#include <sdkddkver.h>
|
|
|
|
#include <winsock2.h>
|
|
|
|
#include <windows.h>
|
|
|
|
#include <d3d11.h>
|
2019-03-21 20:18:31 +01:00
|
|
|
|
|
|
|
#include <cinttypes>
|
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
#include <chrono>
|
|
|
|
#include <ctime>
|
|
|
|
|
|
|
|
#include <filesystem>
|
|
|
|
#include <fstream>
|
|
|
|
#include <iostream>
|
|
|
|
#include <iomanip>
|
|
|
|
|
|
|
|
#include <atomic>
|
|
|
|
#include <mutex>
|
|
|
|
#include <thread>
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <new>
|
|
|
|
|
|
|
|
#include <sstream>
|
|
|
|
#include <string>
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
#include <functional>
|
|
|
|
#include <utility>
|
|
|
|
|
|
|
|
#include <stack>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include <typeinfo>
|
|
|
|
#include <type_traits>
|
|
|
|
|
|
|
|
#include <exception>
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
|
|
#include <any>
|
|
|
|
#include <optional>
|
|
|
|
#include <variant>
|
|
|
|
|
2022-10-24 14:08:37 +02:00
|
|
|
#include <format>
|
2019-03-21 20:18:31 +01:00
|
|
|
#include <nlohmann/json.hpp>
|
|
|
|
|
2023-02-08 23:36:55 +01:00
|
|
|
#include "logger/logger.hpp"
|
2020-02-22 18:37:42 -05:00
|
|
|
|
2021-05-20 15:51:42 +02:00
|
|
|
#include "core/globals.hpp"
|
2022-01-30 00:23:26 +01:00
|
|
|
#include "gta/natives.hpp"
|
2022-07-30 18:23:40 +02:00
|
|
|
#include "ped/CPed.hpp"
|
2021-07-25 22:24:22 +02:00
|
|
|
|
2022-06-30 00:11:54 +02:00
|
|
|
#include "services/notifications/notification_service.hpp"
|
2023-02-01 19:46:33 +01:00
|
|
|
#include "services/translation_service/translation_service.hpp"
|
2022-03-02 00:21:29 +01:00
|
|
|
|
2023-03-01 21:27:15 +00:00
|
|
|
// clang-format on
|
|
|
|
|
2019-03-21 20:18:31 +01:00
|
|
|
namespace big
|
|
|
|
{
|
|
|
|
using namespace std::chrono_literals;
|
|
|
|
|
|
|
|
inline HMODULE g_hmodule{};
|
|
|
|
inline HANDLE g_main_thread{};
|
|
|
|
inline DWORD g_main_thread_id{};
|
2023-03-01 21:27:15 +00:00
|
|
|
inline std::atomic_bool g_running{false};
|
2021-07-25 22:24:22 +02:00
|
|
|
|
|
|
|
inline CPed* g_local_player;
|
2019-03-21 20:18:31 +01:00
|
|
|
}
|
2022-05-07 18:27:59 -04:00
|
|
|
|
|
|
|
namespace self
|
|
|
|
{
|
|
|
|
inline Ped ped;
|
|
|
|
inline Player id;
|
|
|
|
inline Vector3 pos;
|
|
|
|
inline Vehicle veh;
|
|
|
|
}
|
2022-11-08 21:08:58 +00:00
|
|
|
|
2023-01-03 16:48:32 +00:00
|
|
|
template<size_t N>
|
|
|
|
struct template_str
|
|
|
|
{
|
2023-03-01 21:27:15 +00:00
|
|
|
constexpr template_str(const char (&str)[N])
|
2023-01-03 16:48:32 +00:00
|
|
|
{
|
|
|
|
std::copy_n(str, N, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
char value[N];
|
|
|
|
};
|
|
|
|
|
2022-11-08 21:08:58 +00:00
|
|
|
#endif
|