liblcf
rpg_battleranimationextension.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_BATTLERANIMATIONEXTENSION_H
13
#define LCF_RPG_BATTLERANIMATIONEXTENSION_H
14
15
// Headers
16
#include <stdint.h>
17
#include <string>
18
#include "
enum_tags.h
"
19
23
namespace
RPG
{
24
class
BattlerAnimationExtension
{
25
public
:
26
enum
AnimType
{
27
AnimType_graphic
= 0,
28
AnimType_animation
= 1
29
};
30
static
constexpr
auto
kAnimTypeTags
= makeEnumTags<AnimType>(
31
"graphic"
,
32
"animation"
33
);
34
35
int
ID
= 0;
36
std::string
name
;
37
std::string
battler_name
;
38
int32_t
battler_index
= 0;
39
int32_t
animation_type
= 0;
40
int32_t
animation_id
= 1;
41
};
42
43
inline
bool
operator==
(
const
BattlerAnimationExtension
& l,
const
BattlerAnimationExtension
& r) {
44
return
l.
name
== r.
name
45
&& l.
battler_name
== r.
battler_name
46
&& l.
battler_index
== r.
battler_index
47
&& l.
animation_type
== r.
animation_type
48
&& l.
animation_id
== r.
animation_id
;
49
}
50
51
inline
bool
operator!=
(
const
BattlerAnimationExtension
& l,
const
BattlerAnimationExtension
& r) {
52
return
!(l == r);
53
}
54
}
55
56
#endif
RPG::BattlerAnimationExtension
Definition:
rpg_battleranimationextension.h:24
RPG::BattlerAnimationExtension::animation_id
int32_t animation_id
Definition:
rpg_battleranimationextension.h:40
RPG::BattlerAnimationExtension::battler_index
int32_t battler_index
Definition:
rpg_battleranimationextension.h:38
RPG::BattlerAnimationExtension::ID
int ID
Definition:
rpg_battleranimationextension.h:35
RPG::BattlerAnimationExtension::name
std::string name
Definition:
rpg_battleranimationextension.h:36
RPG::BattlerAnimationExtension::battler_name
std::string battler_name
Definition:
rpg_battleranimationextension.h:37
RPG::BattlerAnimationExtension::kAnimTypeTags
static constexpr auto kAnimTypeTags
Definition:
rpg_battleranimationextension.h:30
RPG::BattlerAnimationExtension::AnimType
AnimType
Definition:
rpg_battleranimationextension.h:26
RPG::BattlerAnimationExtension::AnimType_animation
@ AnimType_animation
Definition:
rpg_battleranimationextension.h:28
RPG::BattlerAnimationExtension::AnimType_graphic
@ AnimType_graphic
Definition:
rpg_battleranimationextension.h:27
RPG::BattlerAnimationExtension::animation_type
int32_t animation_type
Definition:
rpg_battleranimationextension.h:39
enum_tags.h
RPG
Definition:
rpg_actor.h:26
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
src
generated
rpg_battleranimationextension.h
Generated on Tue Jan 26 2021 00:00:00 for liblcf by
1.9.1