liblcf
Loading...
Searching...
No Matches
rpg_savemapinfo.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_SAVEMAPINFO_H
13#define LCF_RPG_SAVEMAPINFO_H
14
15// Headers
16#include <stdint.h>
17#include <string>
18#include <vector>
19#include "rpg_map.h"
20#include "rpg_mapinfo.h"
21#include "rpg_savemapevent.h"
22
26namespace RPG {
28 public:
29 void Setup();
30 void Setup(const RPG::Map& map);
31 void Fixup(const RPG::Map& map);
32 void Fixup(const RPG::MapInfo& map);
33 void UnFixup(const RPG::Map& map);
34 void UnFixup(const RPG::MapInfo& map);
35 int32_t position_x = 0;
36 int32_t position_y = 0;
37 int32_t encounter_rate = -1;
38 int32_t chipset_id = -1;
39 std::vector<SaveMapEvent> events;
40 std::vector<uint8_t> lower_tiles;
41 std::vector<uint8_t> upper_tiles;
42 std::string parallax_name;
43 bool parallax_horz = false;
44 bool parallax_vert = false;
45 bool parallax_horz_auto = false;
47 bool parallax_vert_auto = false;
49 };
50
51 inline bool operator==(const SaveMapInfo& l, const SaveMapInfo& r) {
52 return l.position_x == r.position_x
53 && l.position_y == r.position_y
55 && l.chipset_id == r.chipset_id
56 && l.events == r.events
57 && l.lower_tiles == r.lower_tiles
58 && l.upper_tiles == r.upper_tiles
66 }
67
68 inline bool operator!=(const SaveMapInfo& l, const SaveMapInfo& r) {
69 return !(l == r);
70 }
71}
72
73#endif
std::vector< uint8_t > upper_tiles
void Fixup(const RPG::Map &map)
Definition: rpg_fixup.cpp:225
std::string parallax_name
void UnFixup(const RPG::Map &map)
Definition: rpg_fixup.cpp:233
std::vector< uint8_t > lower_tiles
std::vector< SaveMapEvent > events
int32_t parallax_horz_speed
int32_t parallax_vert_speed
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