1 /* !!!! GENERATED FILE - DO NOT EDIT !!!!
2  * --------------------------------------
3  *
4  * This file is part of liblcf. Copyright (c) 2021 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 #include "lcf/context.h"
18 #include <ostream>
19 #include <type_traits>
20 
21 /**
22  * rpg::Learning class.
23  */
24 namespace lcf {
25 namespace rpg {
26 	class Learning {
27 	public:
28 		int ID = 0;
29 		int32_t level = 1;
30 		int32_t skill_id = 1;
31 	};
32 
33 	inline bool operator==(const Learning& l, const Learning& r) {
34 		return l.level == r.level
35 		&& l.skill_id == r.skill_id;
36 	}
37 
38 	inline bool operator!=(const Learning& l, const Learning& r) {
39 		return !(l == r);
40 	}
41 
42 	std::ostream& operator<<(std::ostream& os, const Learning& obj);
43 
44 	template <typename F, typename ParentCtx = Context<void,void>>
45 	void ForEachString(Learning& obj, const F& f, const ParentCtx* parent_ctx = nullptr) {
46 		(void)obj;
47 		(void)f;
48 		(void)parent_ctx;
49 	}
50 
51 } // namespace rpg
52 } // namespace lcf
53 
54 #endif
55