forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EMPulseClass.h
51 lines (38 loc) · 1.26 KB
/
EMPulseClass.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
/*
EMP - no, you're NOT seeing things :P
*/
#pragma once
#include <AbstractClass.h>
class NOVTABLE EMPulseClass : public AbstractClass
{
public:
static const AbstractType AbsID = AbstractType::EMPulse;
//Static
static constexpr constant_ptr<DynamicVectorClass<EMPulseClass*>, 0x8A3870u> const Array{};
//IPersist
virtual HRESULT __stdcall GetClassID(CLSID* pClassID) R0;
//IPersistStream
virtual HRESULT __stdcall Load(IStream* pStm) R0;
virtual HRESULT __stdcall Save(IStream* pStm,BOOL fClearDirty) R0;
//Destructor
virtual ~EMPulseClass() RX;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//Constructor
EMPulseClass(CellStruct dwCrd, int nSpread, int nDuration,
TechnoClass* pGenerator) noexcept : EMPulseClass(noinit_t())
{ JMP_THIS(0x4C52B0); }
protected:
explicit __forceinline EMPulseClass(noinit_t) noexcept
: AbstractClass(noinit_t())
{ }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
CellStruct BaseCoords;
int Spread;
int CreationTime; //frame in which this EMP got created
int Duration;
};