liblcf
Loading...
Searching...
No Matches
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
21namespace 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
int16_t shield_id
Definition: rpg_equipment.h:25
int16_t accessory_id
Definition: rpg_equipment.h:28
int16_t armor_id
Definition: rpg_equipment.h:26
int16_t helmet_id
Definition: rpg_equipment.h:27
int16_t weapon_id
Definition: rpg_equipment.h:24
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