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