forked from Phobos-developers/YRpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildingLightClass.h
52 lines (39 loc) · 1.25 KB
/
BuildingLightClass.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
#pragma once
#include <GeneralStructures.h>
#include <ObjectClass.h>
class NOVTABLE BuildingLightClass : public ObjectClass
{
public:
static const AbstractType AbsID = AbstractType::BuildingLight;
//Static
static DynamicVectorClass<BuildingLightClass*>* Array;
//IPersist
virtual HRESULT __stdcall GetClassID(CLSID* pClassID) R0;
//IPersistStream
virtual HRESULT __stdcall Save(IStream* pStm,BOOL fClearDirty) R0;
//AbstractClass
virtual AbstractType WhatAmI() const RT(AbstractType);
virtual int Size() const R0;
//Destructor
virtual ~BuildingLightClass() RX;
//Constructor
BuildingLightClass(ObjectClass *Owner) : ObjectClass(false)
{ JMP_THIS(0x435820); }
// non-virtual
void SetBehaviour(SpotlightBehaviour mode)
{ JMP_THIS(0x436BE0); }
protected:
BuildingLightClass() : ObjectClass(false) { }
//===========================================================================
//===== Properties ==========================================================
//===========================================================================
public:
double Speed;
CoordStruct field_B8;
CoordStruct field_C4;
double Acceleration;
bool Direction;
SpotlightBehaviour BehaviourMode;
ObjectClass * FollowingObject;
TechnoClass * OwnerObject;
};