This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
YimMenu/src/common.hpp
maybegreat48 9ccb77e8eb
Add more spoofing options and added clang-format (#1020)
* feat(Spoofing): add spoofing
* feat(Spoofing): prepare code for player attach
* remove(PlayerAttach): isn't going to work due to netsync architecture
* fix(GUI): fix scaling
* feat(Project): add clang-format file
* feat(Classes): update classes
* fix(BlackHole): remove unnecessary cleanup
* fix(Formatting): fix formatting for initializer lists
* feat(clang-format): Set tab width and 1 space before comment

Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
2023-03-01 21:27:15 +00:00

97 lines
1.5 KiB
C++

#ifndef COMMON_INC
#define COMMON_INC
// clang-format off
#include <sdkddkver.h>
#include <winsock2.h>
#include <windows.h>
#include <d3d11.h>
#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>
#include <format>
#include <nlohmann/json.hpp>
#include "logger/logger.hpp"
#include "core/globals.hpp"
#include "gta/natives.hpp"
#include "ped/CPed.hpp"
#include "services/notifications/notification_service.hpp"
#include "services/translation_service/translation_service.hpp"
// clang-format on
namespace big
{
using namespace std::chrono_literals;
inline HMODULE g_hmodule{};
inline HANDLE g_main_thread{};
inline DWORD g_main_thread_id{};
inline std::atomic_bool g_running{false};
inline CPed* g_local_player;
}
namespace self
{
inline Ped ped;
inline Player id;
inline Vector3 pos;
inline Vehicle veh;
}
template<size_t N>
struct template_str
{
constexpr template_str(const char (&str)[N])
{
std::copy_n(str, N, value);
}
char value[N];
};
#endif