-
Notifications
You must be signed in to change notification settings - Fork 44
/
LightSourceClass.h
61 lines (46 loc) · 1.47 KB
/
LightSourceClass.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
/*
LightSource - used for light posts and radiation
*/
#pragma once
#include <AbstractClass.h>
class NOVTABLE LightSourceClass : public AbstractClass
{
public:
static const AbstractType AbsID = AbstractType::LightSource;
//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 ~LightSourceClass() RX;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//non-virtual
void Activate(DWORD dwZero = 0) //Start lighting
{ JMP_THIS(0x554A60); }
void Deactivate(DWORD dwZero = 0) //Stop lighting
{ JMP_THIS(0x554A80); }
void ChangeLevels(int nIntensity, TintStruct Tint, char mode)
{ JMP_THIS(0x554AA0); }
//Constructor
LightSourceClass(
CoordStruct Crd, int nVisibility, int nIntensity, TintStruct Tint) noexcept
: LightSourceClass(noinit_t())
{ JMP_THIS(0x554760); }
protected:
explicit __forceinline LightSourceClass(noinit_t) noexcept
: AbstractClass(noinit_t())
{ }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
int LightIntensity;
TintStruct LightTint;
int DetailLevel;
CoordStruct Location;
int LightVisibility;
bool Activated;
};