forked from EasyRPG/Player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlcf_data.cpp
64 lines (57 loc) · 1.88 KB
/
lcf_data.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
*
* liblcf is Free/Libre Open Source Software, released under the MIT License.
* For the full copyright and license information, please view the COPYING
* file that was distributed with this source code.
*/
#include "lcf/rpg/database.h"
#include "lcf/data.h"
namespace lcf {
namespace Data {
rpg::Database data;
std::vector<rpg::Actor>& actors = data.actors;
std::vector<rpg::Skill>& skills = data.skills;
std::vector<rpg::Item>& items = data.items;
std::vector<rpg::Enemy>& enemies = data.enemies;
std::vector<rpg::Troop>& troops = data.troops;
std::vector<rpg::Terrain>& terrains = data.terrains;
std::vector<rpg::Attribute>& attributes = data.attributes;
std::vector<rpg::State>& states = data.states;
std::vector<rpg::Animation>& animations = data.animations;
std::vector<rpg::Chipset>& chipsets = data.chipsets;
std::vector<rpg::CommonEvent>& commonevents = data.commonevents;
rpg::BattleCommands& battlecommands = data.battlecommands;
std::vector<rpg::Class>& classes = data.classes;
std::vector<rpg::BattlerAnimation>& battleranimations = data.battleranimations;
rpg::Terms& terms = data.terms;
rpg::System& system = data.system;
std::vector<rpg::Switch>& switches = data.switches;
std::vector<rpg::Variable>& variables = data.variables;
rpg::TreeMap treemap;
}
void Data::Clear() {
actors.clear();
skills.clear();
items.clear();
enemies.clear();
troops.clear();
terrains.clear();
attributes.clear();
states.clear();
animations.clear();
chipsets.clear();
commonevents.clear();
battlecommands = rpg::BattleCommands();
classes.clear();
battleranimations.clear();
terms = rpg::Terms();
system = rpg::System();
switches.clear();
variables.clear();
treemap.active_node = 0;
treemap.maps.clear();
treemap.tree_order.clear();
}
} //namespace lcf