ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
TblFile.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2009 - 2022 Arzel Jérôme <myst6re@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-or-later
3 
4 #pragma once
5 
6 #include <QtCore>
7 #include <ff7tkformats_export.h>
8 
9 struct FF7TKFORMATS_EXPORT WorldToField
10 {
11  qint16 x;
12  qint16 y;
13  qint16 z;
14  quint16 fieldId;
15  quint8 dir;
16  quint8 _pad;
17 };
18 
19 struct FF7TKFORMATS_EXPORT TblFileEntry
20 {
21  WorldToField wm2Field[2]; // 0= default, 1= alternate
22 };
23 
24 class FF7TKFORMATS_EXPORT TblFile
25 {
26 public:
27  TblFile();
28  bool open(const QByteArray &data);
29  QByteArray save() const;
30  QString toString() const;
31 private:
32  QList<TblFileEntry> _entries;
33 };
WorldToField
Definition: TblFile.h:9
WorldToField::z
qint16 z
Definition: TblFile.h:13
WorldToField::y
qint16 y
Definition: TblFile.h:12
WorldToField::_pad
quint8 _pad
Definition: TblFile.h:16
WorldToField::dir
quint8 dir
Definition: TblFile.h:15
TblFileEntry
Definition: TblFile.h:19
WorldToField::x
qint16 x
Definition: TblFile.h:11
TblFile
Definition: TblFile.h:24
WorldToField::fieldId
quint16 fieldId
Definition: TblFile.h:14