liblcf
rpg_animationcelldata.h
Go to the documentation of this file.
1 /* !!!! GENERATED FILE - DO NOT EDIT !!!!
2  * --------------------------------------
3  *
4  * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
5  * https://github.com/EasyRPG/liblcf - https://easyrpg.org
6  *
7  * liblcf is Free/Libre Open Source Software, released under the MIT License.
8  * For the full copyright and license information, please view the COPYING
9  * file that was distributed with this source code.
10  */
11 
12 #ifndef LCF_RPG_ANIMATIONCELLDATA_H
13 #define LCF_RPG_ANIMATIONCELLDATA_H
14 
15 // Headers
16 #include <stdint.h>
17 
21 namespace RPG {
23  public:
24  int ID = 0;
25  int32_t valid = 1;
26  int32_t cell_id = 0;
27  int32_t x = 0;
28  int32_t y = 0;
29  int32_t zoom = 100;
30  int32_t tone_red = 100;
31  int32_t tone_green = 100;
32  int32_t tone_blue = 100;
33  int32_t tone_gray = 100;
34  int32_t transparency = 0;
35  };
36 
37  inline bool operator==(const AnimationCellData& l, const AnimationCellData& r) {
38  return l.valid == r.valid
39  && l.cell_id == r.cell_id
40  && l.x == r.x
41  && l.y == r.y
42  && l.zoom == r.zoom
43  && l.tone_red == r.tone_red
44  && l.tone_green == r.tone_green
45  && l.tone_blue == r.tone_blue
46  && l.tone_gray == r.tone_gray
47  && l.transparency == r.transparency;
48  }
49 
50  inline bool operator!=(const AnimationCellData& l, const AnimationCellData& r) {
51  return !(l == r);
52  }
53 }
54 
55 #endif
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG::AnimationCellData::tone_blue
int32_t tone_blue
Definition: rpg_animationcelldata.h:32
RPG::AnimationCellData::tone_gray
int32_t tone_gray
Definition: rpg_animationcelldata.h:33
RPG
Definition: rpg_actor.h:26
RPG::AnimationCellData::tone_red
int32_t tone_red
Definition: rpg_animationcelldata.h:30
RPG::AnimationCellData::y
int32_t y
Definition: rpg_animationcelldata.h:28
RPG::AnimationCellData::x
int32_t x
Definition: rpg_animationcelldata.h:27
RPG::AnimationCellData
Definition: rpg_animationcelldata.h:22
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::AnimationCellData::zoom
int32_t zoom
Definition: rpg_animationcelldata.h:29
RPG::AnimationCellData::ID
int ID
Definition: rpg_animationcelldata.h:24
RPG::AnimationCellData::transparency
int32_t transparency
Definition: rpg_animationcelldata.h:34
RPG::AnimationCellData::valid
int32_t valid
Definition: rpg_animationcelldata.h:25
RPG::AnimationCellData::tone_green
int32_t tone_green
Definition: rpg_animationcelldata.h:31
RPG::AnimationCellData::cell_id
int32_t cell_id
Definition: rpg_animationcelldata.h:26