-
Notifications
You must be signed in to change notification settings - Fork 111
/
CEntryExit.h
72 lines (63 loc) · 2.21 KB
/
CEntryExit.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
/*
Plugin-SDK (Grand Theft Auto San Andreas) header file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#pragma once
#include "PluginBase.h"
#include "CRect.h"
#include "CVector.h"
#include "CObject.h"
class CPed;
class PLUGIN_API CEntryExit {
PLUGIN_NO_DEFAULT_CONSTRUCTION(CEntryExit)
public:
char m_szName[8];
CRect m_recEntrance;
float m_fEntranceZ;
float m_fEntranceAngle;
CVector m_vecExitPos;
float m_fExitAngle;
struct {
unsigned short bUnknownInterior : 1;
unsigned short bUnknownPairing : 1;
unsigned short bCreateLinkedPair : 1;
unsigned short bRewardInterior : 1;
unsigned short bUsedRewardEntrance : 1;
unsigned short bCarsAndAircraft : 1;
unsigned short bBikesAndMotorcycles : 1;
unsigned short bDisableOnFoot : 1;
unsigned short bAcceptNpcGroup : 1;
unsigned short bFoodDateFlag : 1;
unsigned short bUnknownBurglary : 1;
unsigned short bDisableExit : 1;
unsigned short bBurglaryAccess : 1;
unsigned short bEnteredWithoutExit : 1;
unsigned short bEnableAccess : 1;
unsigned short bDeleteEnex : 1;
} m_nFlags;
unsigned char m_nArea;
unsigned char m_nSkyColor;
unsigned char m_nTimeOn;
unsigned char m_nTimeOff;
unsigned char m_nNumberOfPeds;
private:
char _pad37;
public:
CEntryExit *m_pLink;
SUPPORTED_10US static bool &ms_bWarping;
SUPPORTED_10US static CObject *&ms_pDoor;
SUPPORTED_10US static CEntryExit *&ms_spawnPoint;
SUPPORTED_10US void GenerateAmbientPeds(CVector const &position);
SUPPORTED_10US char *GetEntryExitToDisplayNameOf();
SUPPORTED_10US void GetPositionRelativeToOutsideWorld(CVector &positionInOut);
SUPPORTED_10US bool IsInArea(CVector const &position);
SUPPORTED_10US void RequestAmbientPeds();
SUPPORTED_10US void RequestObjectsInFrustum();
SUPPORTED_10US bool TransitionFinished(CPed *player);
SUPPORTED_10US bool TransitionStarted(CPed *player);
SUPPORTED_10US void WarpGangWithPlayer(CPed *player);
};
VALIDATE_SIZE(CEntryExit, 0x3C);
#include "meta/meta.CEntryExit.h"