liblcf
rpg_chipset.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_CHIPSET_H
13
#define LCF_RPG_CHIPSET_H
14
15
// Headers
16
#include <stdint.h>
17
#include <string>
18
#include <vector>
19
#include "
enum_tags.h
"
20
24
namespace
RPG
{
25
class
Chipset
{
26
public
:
27
enum
AnimType
{
28
AnimType_reciprocating
= 0,
29
AnimType_cyclic
= 1
30
};
31
static
constexpr
auto
kAnimTypeTags
= makeEnumTags<AnimType>(
32
"reciprocating"
,
33
"cyclic"
34
);
35
36
Chipset
();
37
void
Init
();
38
int
ID
= 0;
39
std::string
name
;
40
std::string
chipset_name
;
41
std::vector<int16_t>
terrain_data
;
42
std::vector<uint8_t>
passable_data_lower
;
43
std::vector<uint8_t>
passable_data_upper
;
44
int32_t
animation_type
= 0;
45
int32_t
animation_speed
= 0;
46
};
47
48
inline
bool
operator==
(
const
Chipset
& l,
const
Chipset
& r) {
49
return
l.
name
== r.
name
50
&& l.
chipset_name
== r.
chipset_name
51
&& l.
terrain_data
== r.
terrain_data
52
&& l.
passable_data_lower
== r.
passable_data_lower
53
&& l.
passable_data_upper
== r.
passable_data_upper
54
&& l.
animation_type
== r.
animation_type
55
&& l.
animation_speed
== r.
animation_speed
;
56
}
57
58
inline
bool
operator!=
(
const
Chipset
& l,
const
Chipset
& r) {
59
return
!(l == r);
60
}
61
}
62
63
#endif
RPG::Chipset
Definition:
rpg_chipset.h:25
RPG::Chipset::passable_data_upper
std::vector< uint8_t > passable_data_upper
Definition:
rpg_chipset.h:43
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
RPG::Chipset::Init
void Init()
Definition:
rpg_setup.cpp:174
RPG
Definition:
rpg_actor.h:26
RPG::Chipset::ID
int ID
Definition:
rpg_chipset.h:38
RPG::Chipset::passable_data_lower
std::vector< uint8_t > passable_data_lower
Definition:
rpg_chipset.h:42
RPG::Chipset::AnimType_reciprocating
@ AnimType_reciprocating
Definition:
rpg_chipset.h:28
RPG::Chipset::animation_type
int32_t animation_type
Definition:
rpg_chipset.h:44
RPG::Chipset::AnimType
AnimType
Definition:
rpg_chipset.h:27
RPG::Chipset::terrain_data
std::vector< int16_t > terrain_data
Definition:
rpg_chipset.h:41
RPG::Chipset::chipset_name
std::string chipset_name
Definition:
rpg_chipset.h:40
RPG::Chipset::kAnimTypeTags
static constexpr auto kAnimTypeTags
Definition:
rpg_chipset.h:31
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
RPG::Chipset::name
std::string name
Definition:
rpg_chipset.h:39
RPG::Chipset::Chipset
Chipset()
Definition:
rpg_chipset.cpp:18
RPG::Chipset::AnimType_cyclic
@ AnimType_cyclic
Definition:
rpg_chipset.h:29
RPG::Chipset::animation_speed
int32_t animation_speed
Definition:
rpg_chipset.h:45
enum_tags.h
src
generated
rpg_chipset.h
Generated on Sun Aug 2 2020 00:00:00 for liblcf by
1.8.18