forked from Ares-Developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathParticleSystemTypeClass.h
77 lines (63 loc) · 2.06 KB
/
ParticleSystemTypeClass.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
73
74
75
76
77
/*
ParticleSystemTypes are initialized by INI files.
*/
#pragma once
#include <ObjectTypeClass.h>
//forward declarations
class NOVTABLE ParticleSystemTypeClass : public ObjectTypeClass
{
public:
static const AbstractType AbsID = AbstractType::ParticleSystemType;
//Array
ABSTRACTTYPE_ARRAY(ParticleSystemTypeClass, 0xA83D68u);
static ParticleSystemTypeClass* __fastcall FindOrAllocate(const char* id)
{ JMP_STD(0x644890); }
//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 ~ParticleSystemTypeClass() RX;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//ObjectTypeClass
virtual bool SpawnAtMapCoords(CellStruct* mcoords, HouseClass* owner) R0;
virtual ObjectClass* CreateObject(HouseClass* owner) R0;
//Constructor
ParticleSystemTypeClass(const char* pID) noexcept
: ParticleSystemTypeClass(noinit_t())
{ JMP_THIS(0x6440A0); }
protected:
explicit __forceinline ParticleSystemTypeClass(noinit_t) noexcept
: ObjectTypeClass(noinit_t())
{ }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
int HoldsWhat; //ParticleType Array index
bool Spawns;
int SpawnFrames;
float Slowdown;
int ParticleCap;
int SpawnRadius;
float SpawnCutoff;
float SpawnTranslucencyCutoff;
BehavesLike BehavesLike;
int Lifetime;
Vector3D<float> SpawnDirection;
double ParticlesPerCoord;
double SpiralDeltaPerCoord;
double SpiralRadius;
double PositionPerturbationCoefficient;
double MovementPerturbationCoefficient;
double VelocityPerturbationCoefficient;
double SpawnSparkPercentage;
int SparkSpawnFrames;
int LightSize;
ColorStruct LaserColor;
bool Laser;
bool OneFrameLight;
};