liblcf
rpg_learning.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_LEARNING_H
13 #define LCF_RPG_LEARNING_H
14 
15 // Headers
16 #include <stdint.h>
17 
21 namespace RPG {
22  class Learning {
23  public:
24  int ID = 0;
25  int32_t level = 1;
26  int32_t skill_id = 1;
27  };
28 
29  inline bool operator==(const Learning& l, const Learning& r) {
30  return l.level == r.level
31  && l.skill_id == r.skill_id;
32  }
33 
34  inline bool operator!=(const Learning& l, const Learning& r) {
35  return !(l == r);
36  }
37 }
38 
39 #endif
RPG::Learning::level
int32_t level
Definition: rpg_learning.h:25
RPG::Learning::ID
int ID
Definition: rpg_learning.h:24
RPG::operator==
bool operator==(const Actor &l, const Actor &r)
Definition: rpg_actor.h:64
RPG
Definition: rpg_actor.h:26
RPG::Learning
Definition: rpg_learning.h:22
RPG::operator!=
bool operator!=(const Actor &l, const Actor &r)
Definition: rpg_actor.h:98
RPG::Learning::skill_id
int32_t skill_id
Definition: rpg_learning.h:26