liblcf
rpg_treemap.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_TREEMAP_H
13
#define LCF_RPG_TREEMAP_H
14
15
// Headers
16
#include <stdint.h>
17
#include <vector>
18
#include "
rpg_mapinfo.h
"
19
#include "
rpg_start.h
"
20
24
namespace
RPG
{
25
class
TreeMap
{
26
public
:
27
std::string
lmt_header
;
28
enum
MapType
{
29
MapType_root
= 0,
30
MapType_map
= 1,
31
MapType_area
= 2
32
};
33
static
constexpr
auto
kMapTypeTags
= makeEnumTags<MapType>(
34
"root"
,
35
"map"
,
36
"area"
37
);
38
39
std::vector<MapInfo>
maps
;
40
std::vector<int32_t>
tree_order
;
41
int32_t
active_node
= 0;
42
Start
start
;
43
};
44
45
inline
bool
operator==
(
const
TreeMap
& l,
const
TreeMap
& r) {
46
return
l.
maps
== r.
maps
47
&& l.
tree_order
== r.
tree_order
48
&& l.
active_node
== r.
active_node
49
&& l.
start
== r.
start
;
50
}
51
52
inline
bool
operator!=
(
const
TreeMap
& l,
const
TreeMap
& r) {
53
return
!(l == r);
54
}
55
}
56
57
#endif
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
rpg_start.h
RPG::Start
Definition:
rpg_start.h:22
RPG::TreeMap::start
Start start
Definition:
rpg_treemap.h:42
RPG
Definition:
rpg_actor.h:26
RPG::TreeMap::MapType_area
@ MapType_area
Definition:
rpg_treemap.h:31
RPG::TreeMap::maps
std::vector< MapInfo > maps
Definition:
rpg_treemap.h:39
RPG::TreeMap::MapType_root
@ MapType_root
Definition:
rpg_treemap.h:29
RPG::TreeMap::active_node
int32_t active_node
Definition:
rpg_treemap.h:41
RPG::TreeMap
Definition:
rpg_treemap.h:25
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
RPG::TreeMap::kMapTypeTags
static constexpr auto kMapTypeTags
Definition:
rpg_treemap.h:33
RPG::TreeMap::tree_order
std::vector< int32_t > tree_order
Definition:
rpg_treemap.h:40
RPG::TreeMap::MapType_map
@ MapType_map
Definition:
rpg_treemap.h:30
rpg_mapinfo.h
RPG::TreeMap::MapType
MapType
Definition:
rpg_treemap.h:28
RPG::TreeMap::lmt_header
std::string lmt_header
Definition:
rpg_treemap.h:27
src
generated
rpg_treemap.h
Generated on Sun Aug 2 2020 00:00:00 for liblcf by
1.8.18