-
Notifications
You must be signed in to change notification settings - Fork 42
/
LaserDrawClass.h
52 lines (46 loc) · 1.55 KB
/
LaserDrawClass.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
/*
Lasers
*/
#pragma once
#include <GeneralDefinitions.h>
#include <ProgressTimer.h>
class LaserDrawClass
{
public:
//Constructor, Destructor
LaserDrawClass(const CoordStruct& source, const CoordStruct& target, const ColorStruct& innerColor,
const ColorStruct& outerColor, const ColorStruct& outerSpread, int duration)
: LaserDrawClass(source, target, 0, 1, innerColor, outerColor, outerSpread, duration)
{ }
LaserDrawClass(CoordStruct source, CoordStruct target, int zAdjust, BYTE unknown,
ColorStruct innerColor, ColorStruct outerColor, ColorStruct outerSpread,
int duration, bool blinks = false, bool fades = true,
float startIntensity = 1.0f, float endIntensity = 0.0f)
{ JMP_THIS(0x54FE60); }
~LaserDrawClass()
{ JMP_THIS(0x54FFB0); }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
ProgressTimer Progress;
int Thickness; // only respected if IsHouseColor
bool IsHouseColor;
bool IsSupported; // this changes the values for InnerColor (false: halve, true: double), HouseColor only
PROTECTED_PROPERTY(BYTE, align_22[2]);
CoordStruct Source;
CoordStruct Target;
int ZAdjust;
char field_40;
ColorStruct InnerColor;
ColorStruct OuterColor;
ColorStruct OuterSpread;
PROTECTED_PROPERTY(BYTE, align_4A[2]);
int Duration;
bool Blinks;
bool BlinkState;
bool Fades;
PROTECTED_PROPERTY(BYTE, align_53);
float StartIntensity;
float EndIntensity;
};