-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathextern.h
80 lines (63 loc) · 1.39 KB
/
extern.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#pragma once
#include <D3DX10.h>
#include <xmmintrin.h>
#include <emmintrin.h>
#include <functional>
#include <iostream>
#include <mutex>
#include "functions.h"
#include "offsets.h"
#include "../memory/json.hpp"
extern struct Data data;
extern Functions* func;
extern Offsets* offsets;
extern nlohmann::json* tarkovMarketPTR;
extern nlohmann::json TarkovMarket;
extern std::vector<std::string> trkMarketId;
extern std::vector<std::string>trkMarketName;
extern std::vector<int>trkMarketPrice;
extern std::vector
<std::pair
<std::string, std::pair
<std::string, int>>> trkMarket;
inline bool online;
template <typename Type>
struct threadData
{
std::vector<Type> vector;
std::mutex L;
std::mutex N;
std::mutex M;
};
struct DrawPlayer
{
std::string NickName;
int level = 0;
int side = 0;
bool local = false;
std::string GroupId;
std::vector<D3DXVECTOR3> bonesVectors;
int distance = 0;
};
struct ContainerItem
{
std::string name = "";
int price = 0;
ULONG64 itemPtr = 0;
};
struct DrawItem
{
std::string itemName = "";
bool isContainer = false;
D3DXVECTOR3 itemPosition = { 0,0,0 };
int distance = 0;
int price = 0;
std::vector<ContainerItem> itemsInContainer;
};
class Globals
{
public:
threadData<DrawPlayer> drawingPlayers = {};
threadData<DrawItem> drawingItems = {};
};
extern Globals* globals;