-
Notifications
You must be signed in to change notification settings - Fork 46
/
Globals.h
41 lines (30 loc) · 1.09 KB
/
Globals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include "NAV/AmeisonNavigation.h"
#include "WObject.h"
constexpr int MAX_NAV = 10002;
constexpr int MAX_NODES = 2560;
//filter swapchain
class Globals
{
public:
inline static WObject* LocalPlayer;
inline static std::map<std::string, WObject*> Objects;
inline static std::map<std::string, WObject*> AttackList;
inline static Vector3 CorpsePos;
inline static AmeisenNavigation* Nav = new AmeisenNavigation(("C:\\xhook\\wow\\mmaps\\"), MAX_NAV, MAX_NODES);
static bool isLootWindowOpen();
inline static uint64_t timeSinceEpochMillisec() {
return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count();
}
//Delay
inline static uint64_t last_update = 0;
inline static uint64_t next_update_delta = 0;
inline static bool update = false;
// Mutex
inline static bool SafeToExit = false;
inline static bool Registered = false;
inline static int swapchaincount = 0;
inline static IDXGISwapChain* Swapchains[20];
inline static IDXGISwapChain* g_pSwapChain;
};
extern Globals G;