-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLineTrail.h
More file actions
53 lines (42 loc) · 1.11 KB
/
Copy pathLineTrail.h
File metadata and controls
53 lines (42 loc) · 1.11 KB
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
#pragma once
#include <GeneralDefinitions.h>
struct LineTrailNode
{
CoordStruct Position;
DWORD unknown;
};
class LineTrail
{
public:
static DynamicVectorClass<LineTrail*>* const Array;
//Constructor, Destructor
LineTrail()
{ JMP_THIS(0x556A20); }
~LineTrail()
/*{
if (auto pOwner = this->Owner) {
pOwner->LineTrailer = nullptr;
this->Owner = nullptr;
}
}*/ //since we uses ext data , so hook is needed now
{ JMP_THIS(0x556B30); }
void Draw()
{ JMP_THIS(0x556B70); }
void SetDecrement(int val)
{ JMP_THIS(0x556B50); }
//this function only called before a new game started
static void DeleteAll()
{ JMP_STD(0x556DF0); }
//Ares WC added:
const char* get_ID() const
{ return this->Owner->GetType() ? this->Owner->GetType()->ID : nullptr; }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
ColorStruct Color;
ObjectClass* Owner;
DWORD Decrement;
DWORD ActiveSlot;
LineTrailNode Trails [32];
};