liblcf
rpg_equipment.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_EQUIPMENT_H
13
#define LCF_RPG_EQUIPMENT_H
14
15
// Headers
16
#include <stdint.h>
17
21
namespace
RPG
{
22
class
Equipment
{
23
public
:
24
int16_t
weapon_id
= 0;
25
int16_t
shield_id
= 0;
26
int16_t
armor_id
= 0;
27
int16_t
helmet_id
= 0;
28
int16_t
accessory_id
= 0;
29
};
30
31
inline
bool
operator==
(
const
Equipment
& l,
const
Equipment
& r) {
32
return
l.
weapon_id
== r.
weapon_id
33
&& l.
shield_id
== r.
shield_id
34
&& l.
armor_id
== r.
armor_id
35
&& l.
helmet_id
== r.
helmet_id
36
&& l.
accessory_id
== r.
accessory_id
;
37
}
38
39
inline
bool
operator!=
(
const
Equipment
& l,
const
Equipment
& r) {
40
return
!(l == r);
41
}
42
}
43
44
#endif
RPG::Equipment
Definition:
rpg_equipment.h:22
RPG::Equipment::weapon_id
int16_t weapon_id
Definition:
rpg_equipment.h:24
RPG::Equipment::armor_id
int16_t armor_id
Definition:
rpg_equipment.h:26
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:64
RPG::Equipment::shield_id
int16_t shield_id
Definition:
rpg_equipment.h:25
RPG
Definition:
rpg_actor.h:26
RPG::Equipment::helmet_id
int16_t helmet_id
Definition:
rpg_equipment.h:27
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition:
rpg_actor.h:98
RPG::Equipment::accessory_id
int16_t accessory_id
Definition:
rpg_equipment.h:28
src
generated
rpg_equipment.h
Generated on Sun Aug 2 2020 00:00:00 for liblcf by
1.8.15