forked from tntgamer685347/TNTsTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample.hpp
More file actions
38 lines (29 loc) · 944 Bytes
/
Example.hpp
File metadata and controls
38 lines (29 loc) · 944 Bytes
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
#pragma once
#include "Modules/Module.hpp"
#include "Components/Includes.hpp"
#include <vector> // Required for std::vector
struct CarBoostData {
FVector screenPosition;
float boostAmount;
};
class ExampleModule : public Module
{
public:
ExampleModule();
~ExampleModule() override;
void OnCreate();
void OnDestroy();
void OnRender(); // Add the OnRender function declaration
static void Hook();
static void OnGameEventStart(PreEvent& event);
static void OnGameEventDestroyed(PreEvent& event);
static void PlayerTickCalled(const PostEvent& event);
static void Initialize();
static bool IsInGame;
static AGameEvent_Soccar_TA* CurrentGameEvent;
// Static vectors to store calculated screen positions
static std::vector<CarBoostData> carBoostData;
static std::vector<FVector> ballScreenPositions;
static APRI_TA* localPlayerPRI;
};
extern class ExampleModule Example;