liblcf
data.h
Go to the documentation of this file.
1 /*
2  * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
3  * https://github.com/EasyRPG/liblcf - https://easyrpg.org
4  *
5  * liblcf is Free/Libre Open Source Software, released under the MIT License.
6  * For the full copyright and license information, please view the COPYING
7  * file that was distributed with this source code.
8  */
9 
10 #ifndef LCF_DATA_H
11 #define LCF_DATA_H
12 
13 #include <string>
14 #include <vector>
15 #include "rpg_actor.h"
16 #include "rpg_skill.h"
17 #include "rpg_item.h"
18 #include "rpg_enemy.h"
19 #include "rpg_troop.h"
20 #include "rpg_attribute.h"
21 #include "rpg_state.h"
22 #include "rpg_terrain.h"
23 #include "rpg_animation.h"
24 #include "rpg_chipset.h"
25 #include "rpg_terms.h"
26 #include "rpg_system.h"
27 #include "rpg_commonevent.h"
28 #include "rpg_class.h"
29 #include "rpg_battlecommand.h"
30 #include "rpg_battleranimation.h"
31 #include "rpg_sound.h"
32 #include "rpg_music.h"
33 #include "rpg_eventcommand.h"
34 #include "rpg_treemap.h"
35 #include "rpg_database.h"
36 
40 namespace Data {
42  extern RPG::Database data;
44  extern std::vector<RPG::Actor>& actors;
45  extern std::vector<RPG::Skill>& skills;
46  extern std::vector<RPG::Item>& items;
47  extern std::vector<RPG::Enemy>& enemies;
48  extern std::vector<RPG::Troop>& troops;
49  extern std::vector<RPG::Terrain>& terrains;
50  extern std::vector<RPG::Attribute>& attributes;
51  extern std::vector<RPG::State>& states;
52  extern std::vector<RPG::Animation>& animations;
53  extern std::vector<RPG::Chipset>& chipsets;
54  extern std::vector<RPG::CommonEvent>& commonevents;
56  extern std::vector<RPG::Class>& classes;
57  extern std::vector<RPG::BattlerAnimation>& battleranimations;
58  extern RPG::Terms& terms;
59  extern RPG::System& system;
60  extern std::vector<RPG::Switch>& switches;
61  extern std::vector<RPG::Variable>& variables;
65  extern RPG::TreeMap treemap;
66 
70  void Clear();
71 }
72 
73 #endif
RPG::Database data
Definition: data.cpp:14
RPG::System & system
Definition: data.cpp:31
void Clear()
Definition: data.cpp:38
Definition: data.cpp:13
std::vector< RPG::Troop > & troops
Definition: data.cpp:20
std::vector< RPG::Terrain > & terrains
Definition: data.cpp:21
std::vector< RPG::Attribute > & attributes
Definition: data.cpp:22
std::vector< RPG::Item > & items
Definition: data.cpp:18
RPG::BattleCommands & battlecommands
Definition: data.cpp:27
std::vector< RPG::Class > & classes
Definition: data.cpp:28
std::vector< RPG::Skill > & skills
Definition: data.cpp:17
std::vector< RPG::BattlerAnimation > & battleranimations
Definition: data.cpp:29
std::vector< RPG::Enemy > & enemies
Definition: data.cpp:19
RPG::Terms & terms
Definition: data.cpp:30
std::vector< RPG::Variable > & variables
Definition: data.cpp:33
RPG::TreeMap treemap
Definition: data.cpp:35
std::vector< RPG::CommonEvent > & commonevents
Definition: data.cpp:26
std::vector< RPG::Switch > & switches
Definition: data.cpp:32
std::vector< RPG::Chipset > & chipsets
Definition: data.cpp:25
std::vector< RPG::Animation > & animations
Definition: data.cpp:24
std::vector< RPG::State > & states
Definition: data.cpp:23
std::vector< RPG::Actor > & actors
Definition: data.cpp:16