-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDropList.h
41 lines (31 loc) · 902 Bytes
/
DropList.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
#ifndef __DROPLIST
#define __DROPLIST
// wxWindows includes
#include <wx/datetime.h>
#include <wx/string.h>
// Statsgen Includes
#include "DropListEntry.h"
class DropList
{
public:
bool IsDropped(wxString &name,bool *cheat);
void Sort();
void Load();
void Write();
DropList();
virtual ~DropList();
void AddCheat(wxString &name);
void AddEntry(DropListEntry &entry);
void RemoveEntry(DropListEntry &entry);
int DropIndex(wxString &name,ArrayOfDropListEntry &list);
void AddToCache(wxString &name,bool dropped,bool cheat);
bool InCache(wxString &name,bool *dropped,bool *cheat);
static int Compare(DropListEntry **entry1,DropListEntry **entry2);
ArrayOfDropListEntry allowList;
ArrayOfDropListEntry dropList;
wxSortedArrayString cheatListCache;
wxSortedArrayString dropListCache;
wxSortedArrayString notDroppedListCache;
bool useCache;
};
#endif