-
Notifications
You must be signed in to change notification settings - Fork 48
/
Copy pathRaidProgress.h
55 lines (41 loc) · 912 Bytes
/
RaidProgress.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
#pragma once
#include "Bedrock/WhiteBoard/WhiteBoard.h"
#include <thread>
class RaidEvent
{
public:
CString name;
CString type;
bool finished = false;
};
class Wing
{
public:
CString name;
CArray<RaidEvent> events;
};
class Raid
{
public:
CString name;
CString shortName;
CString configName;
CArray<Wing> wings;
};
class RaidProgress : public CWBItem
{
CPoint lastpos;
virtual void OnDraw( CWBDrawAPI* API );
bool beingFetched = false;
TS32 lastFetchTime = 0;
bool hasFullRaidInfo = false;
std::thread fetchThread;
CArray<Raid> raids;
public:
RaidProgress( CWBItem* Parent, CRect Position );
virtual ~RaidProgress();
static CWBItem* Factory( CWBItem* Root, CXMLNode& node, CRect& Pos );
WB_DECLARE_GUIITEM( _T( "raidprogress" ), CWBItem );
virtual TBOOL IsMouseTransparent( CPoint& ClientSpacePoint, WBMESSAGE MessageType );
CArray<Raid>& GetRaids();
};