ff7tk  0.02
Toolkit for making FF7 Tools
Type_materia.h
Go to the documentation of this file.
1 /****************************************************************************/
2 // copyright 2012 -2016 Chris Rizzitello <sithlord48@gmail.com> //
3 // //
4 // This file is part of FF7tk //
5 // //
6 // FF7tk is free software: you can redistribute it and/or modify //
7 // it under the terms of the GNU General Public License as published by //
8 // the Free Software Foundation, either version 3 of the License, or //
9 // (at your option) any later version. //
10 // //
11 // FF7tk is distributed in the hope that it will be useful, //
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of //
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
14 // GNU General Public License for more details. //
15 /****************************************************************************/
16 
17 #ifndef TYPE_MATERIA_H
18 #define TYPE_MATERIA_H
19 
20 #ifdef _MSC_VER
21 # define PACK(structure) \
22  __pragma(pack(push, 1)) \
23  structure \
24  __pragma(pack(pop))
25 #elif defined(__MINGW32__)
26  #define PACK(structure) structure __attribute__ ((gcc_struct, __packed__))
27 #else
28  #define PACK(structure) structure Q_PACKED
29 #endif
30 
36 PACK(
37 struct materia{// sizeof 4
38 quint8 id;
39 quint8 ap[3];
40 });
41 #endif // TYPE_MATERIA_H
materia format saved in materia list or on a character
#define PACK(structure)
Definition: Type_materia.h:28