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_TROOPMEMBER_H
13 #define LCF_RPG_TROOPMEMBER_H
14 
15 // Headers
16 #include <stdint.h>
17 #include "lcf/context.h"
18 #include <ostream>
19 #include <type_traits>
20 
21 /**
22  * rpg::TroopMember class.
23  */
24 namespace lcf {
25 namespace rpg {
26 	class TroopMember {
27 	public:
28 		int ID = 0;
29 		int32_t enemy_id = 1;
30 		int32_t x = 0;
31 		int32_t y = 0;
32 		bool invisible = false;
33 	};
34 
35 	inline bool operator==(const TroopMember& l, const TroopMember& r) {
36 		return l.enemy_id == r.enemy_id
37 		&& l.x == r.x
38 		&& l.y == r.y
39 		&& l.invisible == r.invisible;
40 	}
41 
42 	inline bool operator!=(const TroopMember& l, const TroopMember& r) {
43 		return !(l == r);
44 	}
45 
46 	std::ostream& operator<<(std::ostream& os, const TroopMember& obj);
47 
48 	template <typename F, typename ParentCtx = Context<void,void>>
49 	void ForEachString(TroopMember& obj, const F& f, const ParentCtx* parent_ctx = nullptr) {
50 		(void)obj;
51 		(void)f;
52 		(void)parent_ctx;
53 	}
54 
55 } // namespace rpg
56 } // namespace lcf
57 
58 #endif
59