liblcf
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
24
namespace
RPG
{
25
class
CommonEvent
{
26
public
:
27
enum
Trigger
{
28
Trigger_automatic
= 3,
29
Trigger_parallel
= 4,
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
46
&& l.
event_commands
== r.
event_commands
;
47
}
48
49
inline
bool
operator!=
(
const
CommonEvent
& l,
const
CommonEvent
& r) {
50
return
!(l == r);
51
}
52
}
53
54
#endif
RPG::CommonEvent
Definition:
rpg_commonevent.h:25
RPG::CommonEvent::name
std::string name
Definition:
rpg_commonevent.h:34
RPG::CommonEvent::ID
int ID
Definition:
rpg_commonevent.h:33
RPG::CommonEvent::event_commands
std::vector< EventCommand > event_commands
Definition:
rpg_commonevent.h:38
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
enum_tags.h
RPG::CommonEvent::Trigger
Trigger
Definition:
rpg_commonevent.h:27
RPG
Definition:
rpg_actor.h:26
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
RPG::CommonEvent::Trigger_automatic
Definition:
rpg_commonevent.h:28
RPG::CommonEvent::Trigger_parallel
Definition:
rpg_commonevent.h:29
RPG::CommonEvent::Trigger_call
Definition:
rpg_commonevent.h:30
rpg_eventcommand.h
RPG::CommonEvent::trigger
int32_t trigger
Definition:
rpg_commonevent.h:35
RPG::CommonEvent::switch_id
int32_t switch_id
Definition:
rpg_commonevent.h:37
RPG::CommonEvent::switch_flag
bool switch_flag
Definition:
rpg_commonevent.h:36
src
generated
rpg_commonevent.h
Generated on Sun Aug 2 2020 00:00:00 for liblcf by
1.8.15