liblcf
Loading...
Searching...
No Matches
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
24namespace RPG {
25 class TreeMap {
26 public:
27 std::string lmt_header;
28 enum MapType {
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;
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
std::string lmt_header
Definition: rpg_treemap.h:27
std::vector< int32_t > tree_order
Definition: rpg_treemap.h:40
int32_t active_node
Definition: rpg_treemap.h:41
std::vector< MapInfo > maps
Definition: rpg_treemap.h:39
static constexpr auto kMapTypeTags
Definition: rpg_treemap.h:33
Definition: rpg_actor.h:26
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98