-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaffixtable.h
60 lines (48 loc) · 1.13 KB
/
affixtable.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
#ifndef AFFIXTABLE_H
#define AFFIXTABLE_H
#include <sqlitetable.h>
#include <QString>
struct Affix;
class AffixTable : public SqliteTable
{
public:
AffixTable(QString databaseName);
void DatabasePath(QString databaseName);
qint64 AddAffix(const Affix& affix);
private:
static const QString AffixTableName;
static const QString AffixTableId;
static const QString Name;
static const QString Duration;
static const QString EffectName;
static const QString EffectDuration;
static const QString EffectDamageType;
static const QString EffectMin;
static const QString EffectMax;
};
struct Affix
{
Affix()
{
}
void Clear()
{
id = 0;
name = "";
duration = 0;
effectName = "";
effectDuration = "";
effectDamageType = "";
effectMin = 0;
effectMax = 0;
}
qint64 id;
QString name;
double duration;
QString effectName;
QString effectDuration;
QString effectDamageType;
double effectMin;
double effectMax;
};
#endif // AFFIXTABLE_H