liblcf
rpg_savetitle.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_SAVETITLE_H
13 #define LCF_RPG_SAVETITLE_H
14 
15 // Headers
16 #include <stdint.h>
17 #include <string>
18 
22 namespace RPG {
23  class SaveTitle {
24  public:
25  double timestamp = 0.0;
26  std::string hero_name;
27  int32_t hero_level = 0;
28  int32_t hero_hp = 0;
29  std::string face1_name;
30  int32_t face1_id = 0;
31  std::string face2_name;
32  int32_t face2_id = 0;
33  std::string face3_name;
34  int32_t face3_id = 0;
35  std::string face4_name;
36  int32_t face4_id = 0;
37  };
38 
39  inline bool operator==(const SaveTitle& l, const SaveTitle& r) {
40  return l.timestamp == r.timestamp
41  && l.hero_name == r.hero_name
42  && l.hero_level == r.hero_level
43  && l.hero_hp == r.hero_hp
44  && l.face1_name == r.face1_name
45  && l.face1_id == r.face1_id
46  && l.face2_name == r.face2_name
47  && l.face2_id == r.face2_id
48  && l.face3_name == r.face3_name
49  && l.face3_id == r.face3_id
50  && l.face4_name == r.face4_name
51  && l.face4_id == r.face4_id;
52  }
53 
54  inline bool operator!=(const SaveTitle& l, const SaveTitle& r) {
55  return !(l == r);
56  }
57 }
58 
59 #endif
int32_t face1_id
Definition: rpg_savetitle.h:30
std::string face1_name
Definition: rpg_savetitle.h:29
std::string hero_name
Definition: rpg_savetitle.h:26
int32_t face2_id
Definition: rpg_savetitle.h:32
std::string face3_name
Definition: rpg_savetitle.h:33
std::string face2_name
Definition: rpg_savetitle.h:31
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
int32_t hero_level
Definition: rpg_savetitle.h:27
int32_t face4_id
Definition: rpg_savetitle.h:36
Definition: rpg_actor.h:26
std::string face4_name
Definition: rpg_savetitle.h:35
int32_t face3_id
Definition: rpg_savetitle.h:34
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98