liblcf
rpg_database.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_DATABASE_H
13 #define LCF_RPG_DATABASE_H
14 
15 // Headers
16 #include <stdint.h>
17 #include <vector>
18 #include "rpg_actor.h"
19 #include "rpg_animation.h"
20 #include "rpg_attribute.h"
21 #include "rpg_battlecommands.h"
22 #include "rpg_battleranimation.h"
23 #include "rpg_chipset.h"
24 #include "rpg_class.h"
25 #include "rpg_commonevent.h"
26 #include "rpg_enemy.h"
27 #include "rpg_item.h"
28 #include "rpg_skill.h"
29 #include "rpg_state.h"
30 #include "rpg_switch.h"
31 #include "rpg_system.h"
32 #include "rpg_terms.h"
33 #include "rpg_terrain.h"
34 #include "rpg_troop.h"
35 #include "rpg_variable.h"
36 
40 namespace RPG {
41  class Database {
42  public:
43  std::string ldb_header;
44  std::vector<Actor> actors;
45  std::vector<Skill> skills;
46  std::vector<Item> items;
47  std::vector<Enemy> enemies;
48  std::vector<Troop> troops;
49  std::vector<Terrain> terrains;
50  std::vector<Attribute> attributes;
51  std::vector<State> states;
52  std::vector<Animation> animations;
53  std::vector<Chipset> chipsets;
56  std::vector<Switch> switches;
57  std::vector<Variable> variables;
58  std::vector<CommonEvent> commonevents;
59  int32_t version = 0;
61  std::vector<Class> classes;
62  std::vector<BattlerAnimation> battleranimations;
63  };
64 
65  inline bool operator==(const Database& l, const Database& r) {
66  return l.actors == r.actors
67  && l.skills == r.skills
68  && l.items == r.items
69  && l.enemies == r.enemies
70  && l.troops == r.troops
71  && l.terrains == r.terrains
72  && l.attributes == r.attributes
73  && l.states == r.states
74  && l.animations == r.animations
75  && l.chipsets == r.chipsets
76  && l.terms == r.terms
77  && l.system == r.system
78  && l.switches == r.switches
79  && l.variables == r.variables
80  && l.commonevents == r.commonevents
81  && l.version == r.version
83  && l.classes == r.classes
85  }
86 
87  inline bool operator!=(const Database& l, const Database& r) {
88  return !(l == r);
89  }
90 }
91 
92 #endif
std::vector< Actor > actors
Definition: rpg_database.h:44
std::vector< Variable > variables
Definition: rpg_database.h:57
std::vector< Chipset > chipsets
Definition: rpg_database.h:53
std::vector< BattlerAnimation > battleranimations
Definition: rpg_database.h:62
std::vector< Troop > troops
Definition: rpg_database.h:48
std::vector< Enemy > enemies
Definition: rpg_database.h:47
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
std::vector< CommonEvent > commonevents
Definition: rpg_database.h:58
BattleCommands battlecommands
Definition: rpg_database.h:60
std::vector< State > states
Definition: rpg_database.h:51
Definition: rpg_actor.h:26
int32_t version
Definition: rpg_database.h:59
std::vector< Skill > skills
Definition: rpg_database.h:45
std::vector< Item > items
Definition: rpg_database.h:46
std::vector< Class > classes
Definition: rpg_database.h:61
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
std::vector< Animation > animations
Definition: rpg_database.h:52
std::vector< Attribute > attributes
Definition: rpg_database.h:50
std::vector< Switch > switches
Definition: rpg_database.h:56
std::vector< Terrain > terrains
Definition: rpg_database.h:49
std::string ldb_header
Definition: rpg_database.h:43