-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackentrymetadata.h
47 lines (39 loc) · 1.35 KB
/
packentrymetadata.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
#ifndef PACKENTRYMETADATA_H
#define PACKENTRYMETADATA_H
#include <QObject>
#include <QDataStream>
namespace ProjectZomboidPackManager
{
class PackEntryMetaData
{
public:
explicit PackEntryMetaData(
QDataStream& stream);
PackEntryMetaData(const PackEntryMetaData& other);
PackEntryMetaData(PackEntryMetaData&& other);
PackEntryMetaData& operator =(const PackEntryMetaData& other);
PackEntryMetaData& operator =(PackEntryMetaData&& other);
~PackEntryMetaData();
QString Name() const { return _entryName; }
qint32 XPos() const { return _xPos; }
qint32 YPos() const { return _yPos; }
qint32 Width() const { return _width; }
qint32 Height() const { return _height; }
qint32 XOffset() const { return _xOffset; }
qint32 YOffset() const { return _yOffset; }
qint32 TotalWidth() const { return _totalWidth; }
qint32 TotalHeight() const { return _totalHeight; }
private:
void ReadMetaData(QDataStream& stream);
QString _entryName;
qint32 _xPos;
qint32 _yPos;
qint32 _width;
qint32 _height;
qint32 _xOffset;
qint32 _yOffset;
qint32 _totalWidth;
qint32 _totalHeight;
};
}
#endif // PACKENTRYMETADATA_H