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