liblcf
Loading...
Searching...
No Matches
rpg_savemapeventbase.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_SAVEMAPEVENTBASE_H
13#define LCF_RPG_SAVEMAPEVENTBASE_H
14
15// Headers
16#include <stdint.h>
17#include <string>
18#include "enum_tags.h"
19#include "rpg_moveroute.h"
20
24namespace RPG {
26 public:
27 bool active = true;
28 int32_t map_id = 0;
29 int32_t position_x = 0;
30 int32_t position_y = 0;
31 int32_t direction = 2;
32 int32_t sprite_direction = 2;
33 int32_t anim_frame = 1;
34 int32_t transparency = 0;
35 int32_t remaining_step = 0;
36 int32_t move_frequency = 2;
37 int32_t layer = 1;
38 bool overlap_forbidden = false;
39 int32_t animation_type = 0;
40 bool lock_facing = false;
41 int32_t move_speed = 4;
44 int32_t move_route_index = 0;
45 bool move_route_repeated = false;
46 bool sprite_transparent = false;
47 bool route_through = false;
48 int32_t anim_paused = 0;
49 bool through = false;
50 int32_t stop_count = 0;
51 int32_t anim_count = 0;
52 int32_t max_stop_count = 0;
53 bool jumping = false;
54 int32_t begin_jump_x = 0;
55 int32_t begin_jump_y = 0;
56 bool pause = false;
57 bool flying = false;
58 std::string sprite_name;
59 int32_t sprite_id = 0;
60 bool processed = false;
61 int32_t flash_red = -1;
62 int32_t flash_green = -1;
63 int32_t flash_blue = -1;
64 double flash_current_level = 0.0;
65 int32_t flash_time_left = 0;
66 };
67
68 inline bool operator==(const SaveMapEventBase& l, const SaveMapEventBase& r) {
69 return l.active == r.active
70 && l.map_id == r.map_id
71 && l.position_x == r.position_x
72 && l.position_y == r.position_y
73 && l.direction == r.direction
75 && l.anim_frame == r.anim_frame
79 && l.layer == r.layer
82 && l.lock_facing == r.lock_facing
83 && l.move_speed == r.move_speed
84 && l.move_route == r.move_route
90 && l.anim_paused == r.anim_paused
91 && l.through == r.through
92 && l.stop_count == r.stop_count
93 && l.anim_count == r.anim_count
95 && l.jumping == r.jumping
98 && l.pause == r.pause
99 && l.flying == r.flying
100 && l.sprite_name == r.sprite_name
101 && l.sprite_id == r.sprite_id
102 && l.processed == r.processed
103 && l.flash_red == r.flash_red
104 && l.flash_green == r.flash_green
105 && l.flash_blue == r.flash_blue
108 }
109
110 inline bool operator!=(const SaveMapEventBase& l, const SaveMapEventBase& r) {
111 return !(l == r);
112 }
113}
114
115#endif
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