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_SAVETITLE_H 13 #define LCF_RPG_SAVETITLE_H 14 15 // Headers 16 #include <stdint.h> 17 #include <string> 18 #include "lcf/context.h" 19 #include <ostream> 20 #include <type_traits> 21 22 /** 23 * rpg::SaveTitle class. 24 */ 25 namespace lcf { 26 namespace rpg { 27 class SaveTitle { 28 public: 29 double timestamp = 0.0; 30 std::string hero_name; 31 int32_t hero_level = 0; 32 int32_t hero_hp = 0; 33 std::string face1_name; 34 int32_t face1_id = 0; 35 std::string face2_name; 36 int32_t face2_id = 0; 37 std::string face3_name; 38 int32_t face3_id = 0; 39 std::string face4_name; 40 int32_t face4_id = 0; 41 }; 42 43 inline bool operator==(const SaveTitle& l, const SaveTitle& r) { 44 return l.timestamp == r.timestamp 45 && l.hero_name == r.hero_name 46 && l.hero_level == r.hero_level 47 && l.hero_hp == r.hero_hp 48 && l.face1_name == r.face1_name 49 && l.face1_id == r.face1_id 50 && l.face2_name == r.face2_name 51 && l.face2_id == r.face2_id 52 && l.face3_name == r.face3_name 53 && l.face3_id == r.face3_id 54 && l.face4_name == r.face4_name 55 && l.face4_id == r.face4_id; 56 } 57 58 inline bool operator!=(const SaveTitle& l, const SaveTitle& r) { 59 return !(l == r); 60 } 61 62 std::ostream& operator<<(std::ostream& os, const SaveTitle& obj); 63 64 template <typename F, typename ParentCtx = Context<void,void>> 65 void ForEachString(SaveTitle& obj, const F& f, const ParentCtx* parent_ctx = nullptr) { 66 (void)obj; 67 (void)f; 68 (void)parent_ctx; 69 } 70 71 } // namespace rpg 72 } // namespace lcf 73 74 #endif 75