-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathLocationalTimer.h
59 lines (45 loc) · 1.24 KB
/
LocationalTimer.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
#pragma once
#include "Bedrock/BaseLib/BaseLib.h"
#include "Bedrock/WhiteBoard/WhiteBoard.h"
class LocationalTimer
{
public:
struct TimerEvent
{
CString Text;
TS32 Time;
TS32 CountdownLength;
TS32 OnScreenLength;
CArray<CVector3> PolyPoints;
CColor PolyColor = CColor( 255, 0, 0, 255 );
};
struct TimerPhase
{
CArray<TimerEvent> Events;
};
TS32 MapID = 0;
CSphere EnterSphere = CSphere( CVector3( 0, 0, 0 ), 0 );
CSphere ExitSphere = CSphere( CVector3( 0, 0, 0 ), 0 );
CVector3 ResetPoint = CVector3( 0, 0, 0 );
TS32 TimerLength = 0;
TS32 StartDelay = 0;
CArray<TimerEvent> Events;
TBOOL IsRunning = false;
TS32 StartTime = 0;
LocationalTimer();
virtual ~LocationalTimer();
void Update();
void ImportData( CXMLNode& node );
};
class TimerDisplay : public CWBItem
{
public:
virtual void OnDraw( CWBDrawAPI* API );
virtual TBOOL IsMouseTransparent( CPoint& ClientSpacePoint, WBMESSAGE MessageType );
TimerDisplay( CWBItem* Parent, CRect Position );
virtual ~TimerDisplay();
static CWBItem* Factory( CWBItem* Root, CXMLNode& node, CRect& Pos );
WB_DECLARE_GUIITEM( _T( "TimerDisplay" ), CWBItem );
};
extern CArray<LocationalTimer> LocationalTimers;
void ImportLocationalTimers();