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
Data::animations
std::vector< RPG::Animation > & animations
Definition: data.cpp:24
rpg_battleranimation.h
Data::actors
std::vector< RPG::Actor > & actors
Definition: data.cpp:16
rpg_music.h
Data::treemap
RPG::TreeMap treemap
Definition: data.cpp:35
Data::items
std::vector< RPG::Item > & items
Definition: data.cpp:18
Data::troops
std::vector< RPG::Troop > & troops
Definition: data.cpp:20
rpg_treemap.h
rpg_troop.h
Data::battleranimations
std::vector< RPG::BattlerAnimation > & battleranimations
Definition: data.cpp:29
Data
Definition: data.cpp:13
rpg_animation.h
rpg_terrain.h
Data::terrains
std::vector< RPG::Terrain > & terrains
Definition: data.cpp:21
Data::commonevents
std::vector< RPG::CommonEvent > & commonevents
Definition: data.cpp:26
rpg_attribute.h
rpg_commonevent.h
Data::battlecommands
RPG::BattleCommands & battlecommands
Definition: data.cpp:27
Data::classes
std::vector< RPG::Class > & classes
Definition: data.cpp:28
RPG::TreeMap
Definition: rpg_treemap.h:25
rpg_database.h
rpg_class.h
rpg_skill.h
rpg_state.h
Data::variables
std::vector< RPG::Variable > & variables
Definition: data.cpp:33
rpg_actor.h
Data::states
std::vector< RPG::State > & states
Definition: data.cpp:23
Data::terms
RPG::Terms & terms
Definition: data.cpp:30
rpg_sound.h
Data::chipsets
std::vector< RPG::Chipset > & chipsets
Definition: data.cpp:25
Data::data
RPG::Database data
Definition: data.cpp:14
rpg_terms.h
rpg_eventcommand.h
rpg_chipset.h
RPG::System
Definition: rpg_system.h:28
RPG::Database
Definition: rpg_database.h:41
rpg_system.h
rpg_item.h
Data::skills
std::vector< RPG::Skill > & skills
Definition: data.cpp:17
Data::system
RPG::System & system
Definition: data.cpp:31
RPG::Terms
Definition: rpg_terms.h:22
Data::Clear
void Clear()
Definition: data.cpp:38
Data::switches
std::vector< RPG::Switch > & switches
Definition: data.cpp:32
rpg_battlecommand.h
Data::enemies
std::vector< RPG::Enemy > & enemies
Definition: data.cpp:19
RPG::BattleCommands
Definition: rpg_battlecommands.h:25
Data::attributes
std::vector< RPG::Attribute > & attributes
Definition: data.cpp:22
rpg_enemy.h