-
Notifications
You must be signed in to change notification settings - Fork 111
/
CPools.cpp
113 lines (93 loc) · 4.1 KB
/
CPools.cpp
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CPools.h"
CPool<CPed, CCopPed> *&CPools::ms_pPedPool = *(CPool<CPed, CCopPed> **)0xB74490;
CPool<CVehicle, CHeli> *&CPools::ms_pVehiclePool = *(CPool<CVehicle, CHeli> **)0xB74494;
CPool<CBuilding> *&CPools::ms_pBuildingPool = *(CPool<CBuilding> **)0xB74498;
CPool<CObject, CCutsceneObject> *&CPools::ms_pObjectPool = *(CPool<CObject, CCutsceneObject> **)0xB7449C;
CPool<CDummy> *&CPools::ms_pDummyPool = *(CPool<CDummy> **)0xB744A0;
CPool<CColModel> *&CPools::ms_pColModelPool = *(CPool<CColModel> **)0xB744A4;
CPool<CTask, char[128]> *&CPools::ms_pTaskPool = *(CPool<CTask, char[128]> **)0xB744A8;
CPool<CPedIntelligence> *&CPools::ms_pPedIntelligencePool = *(CPool<CPedIntelligence> **)0xB744C0;
CPool<CPtrNodeSingleLink> *&ms_pPtrNodeSingleLinkPool = *(CPool<CPtrNodeSingleLink> **)0xB74484;
CPool<CPtrNodeDoubleLink> *&ms_pPtrNodeDoubleLinkPool = *(CPool<CPtrNodeDoubleLink> **)0xB74488;
// Converted from cdecl int CPools::CheckBuildingAtomics(void) 0x550170
int CPools::CheckBuildingAtomics() {
return plugin::CallAndReturn<int, 0x550170>();
}
// Converted from cdecl void CPools::CheckPoolsEmpty(void) 0x551950
void CPools::CheckPoolsEmpty() {
plugin::Call<0x551950>();
}
// Converted from cdecl CObject* CPools::GetObject(int handle) 0x550050
CObject* CPools::GetObject(int handle) {
return plugin::CallAndReturn<CObject*, 0x550050, int>(handle);
}
// Converted from cdecl int CPools::GetObjectRef(CObject *object) 0x550020
int CPools::GetObjectRef(CObject* object) {
return plugin::CallAndReturn<int, 0x550020, CObject*>(object);
}
// Converted from cdecl CPed* CPools::GetPed(int handle) 0x54FF90
CPed* CPools::GetPed(int handle) {
return plugin::CallAndReturn<CPed*, 0x54FF90, int>(handle);
}
// Converted from cdecl int CPools::GetPedRef(CPed *ped) 0x54FF60
int CPools::GetPedRef(CPed* ped) {
return plugin::CallAndReturn<int, 0x54FF60, CPed*>(ped);
}
// Converted from cdecl CVehicle* CPools::GetVehicle(int) 0x54FFF0
CVehicle* CPools::GetVehicle(int handle) {
return plugin::CallAndReturn<CVehicle*, 0x54FFF0, int>(handle);
}
// Converted from cdecl int CPools::GetVehicleRef(CVehicle *vehicle) 0x54FFC0
int CPools::GetVehicleRef(CVehicle* vehicle) {
return plugin::CallAndReturn<int, 0x54FFC0, CVehicle*>(vehicle);
}
// Converted from cdecl void CPools::Initialise(void) 0x550F10
void CPools::Initialise() {
plugin::Call<0x550F10>();
}
// Converted from cdecl bool CPools::Load(void) 0x5D0890
bool CPools::Load() {
return plugin::CallAndReturn<bool, 0x5D0890>();
}
// Converted from cdecl bool CPools::LoadObjectPool(void) 0x5D4A40
bool CPools::LoadObjectPool() {
return plugin::CallAndReturn<bool, 0x5D4A40>();
}
// Converted from cdecl bool CPools::LoadPedPool(void) 0x5D2D70
bool CPools::LoadPedPool() {
return plugin::CallAndReturn<bool, 0x5D2D70>();
}
// Converted from cdecl bool CPools::LoadVehiclePool(void) 0x5D2A20
bool CPools::LoadVehiclePool() {
return plugin::CallAndReturn<bool, 0x5D2A20>();
}
// Converted from cdecl void CPools::MakeSureSlotInObjectPoolIsEmpty(int slot) 0x550080
void CPools::MakeSureSlotInObjectPoolIsEmpty(int slot) {
plugin::Call<0x550080, int>(slot);
}
// Converted from cdecl bool CPools::Save(void) 0x5D0880
bool CPools::Save() {
return plugin::CallAndReturn<bool, 0x5D0880>();
}
// Converted from cdecl bool CPools::SaveObjectPool(void) 0x5D4940
bool CPools::SaveObjectPool() {
return plugin::CallAndReturn<bool, 0x5D4940>();
}
// Converted from cdecl bool CPools::SavePedPool(void) 0x5D4B40
bool CPools::SavePedPool() {
return plugin::CallAndReturn<bool, 0x5D4B40>();
}
// Converted from cdecl bool CPools::SaveVehiclePool(void) 0x5D4800
bool CPools::SaveVehiclePool() {
return plugin::CallAndReturn<bool, 0x5D4800>();
}
// Converted from cdecl void CPools::ShutDown(void) 0x5519F0
void CPools::ShutDown() {
plugin::Call<0x5519F0>();
}