liblcf
Loading...
Searching...
No Matches
rpg_commonevent.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_COMMONEVENT_H
13#define LCF_RPG_COMMONEVENT_H
14
15// Headers
16#include <string>
17#include <vector>
18#include "enum_tags.h"
19#include "rpg_eventcommand.h"
20
24namespace RPG {
26 public:
27 enum Trigger {
30 Trigger_call = 5
31 };
32
33 int ID = 0;
34 std::string name;
35 int32_t trigger = 0;
36 bool switch_flag = false;
37 int32_t switch_id = 1;
38 std::vector<EventCommand> event_commands;
39 };
40
41 inline bool operator==(const CommonEvent& l, const CommonEvent& r) {
42 return l.name == r.name
43 && l.trigger == r.trigger
44 && l.switch_flag == r.switch_flag
45 && l.switch_id == r.switch_id
47 }
48
49 inline bool operator!=(const CommonEvent& l, const CommonEvent& r) {
50 return !(l == r);
51 }
52}
53
54#endif
std::string name
std::vector< EventCommand > event_commands
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