-
Notifications
You must be signed in to change notification settings - Fork 1
/
effectstable.h
64 lines (54 loc) · 1.46 KB
/
effectstable.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
62
63
64
#ifndef EFFECTSTABLE_H
#define EFFECTSTABLE_H
#include <sqlitetable.h>
struct Effect;
class EffectsTable : public SqliteTable
{
public:
EffectsTable(QString databaseName);
void DatabasePath(QString databaseName);
qint64 AddEffect(const Effect& inEffect);
private:
static const QString EffectsTableName;
static const QString EffectId;
static const QString EffectNumber;
static const QString EffectRawName;
static const QString Name;
static const QString GoodDescription;
static const QString GoodDescriptionOverTime;
static const QString BadDescription;
static const QString BadDescriptionOverTime;
static const QString DisplayPrecision;
static const QString DisplayPrecisionMaxVal;
};
struct Effect
{
Effect()
{
Clear();
}
void Clear()
{
effectId = 0;
effectNumber = 0;
rawName = "";
name = "";
goodDescription = "";
goodDescriptionOverTime = "";
badDescription = "";
badDescriptionOverTime = "";
displayPrecision = 0;
displayPrecisionMaxVal = 0;
}
qint64 effectId;
qint32 effectNumber;
QString rawName;
QString name;
QString goodDescription;
QString goodDescriptionOverTime;
QString badDescription;
QString badDescriptionOverTime;
qint32 displayPrecision;
qint32 displayPrecisionMaxVal;
};
#endif // EFFECTSTABLE_H