liblcf
Loading...
Searching...
No Matches
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
24namespace RPG {
25 class Chipset {
26 public:
27 enum AnimType {
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
56 }
57
58 inline bool operator!=(const Chipset& l, const Chipset& r) {
59 return !(l == r);
60 }
61}
62
63#endif
std::string chipset_name
Definition: rpg_chipset.h:40
std::vector< uint8_t > passable_data_upper
Definition: rpg_chipset.h:43
std::vector< int16_t > terrain_data
Definition: rpg_chipset.h:41
static constexpr auto kAnimTypeTags
Definition: rpg_chipset.h:31
int32_t animation_speed
Definition: rpg_chipset.h:45
std::string name
Definition: rpg_chipset.h:39
std::vector< uint8_t > passable_data_lower
Definition: rpg_chipset.h:42
@ AnimType_reciprocating
Definition: rpg_chipset.h:28
int32_t animation_type
Definition: rpg_chipset.h:44
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