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 // Headers 13 #include "lcf/lsd/reader.h" 14 #include "lcf/lsd/chunks.h" 15 #include "reader_struct_impl.h" 16 17 namespace lcf { 18 19 // Read SaveMapInfo. 20 21 template <> 22 char const* const Struct<rpg::SaveMapInfo>::name = "SaveMapInfo"; 23 static TypedField<rpg::SaveMapInfo, int32_t> static_position_x( 24 &rpg::SaveMapInfo::position_x, 25 LSD_Reader::ChunkSaveMapInfo::position_x, 26 "position_x", 27 0, 28 0 29 ); 30 static TypedField<rpg::SaveMapInfo, int32_t> static_position_y( 31 &rpg::SaveMapInfo::position_y, 32 LSD_Reader::ChunkSaveMapInfo::position_y, 33 "position_y", 34 0, 35 0 36 ); 37 static TypedField<rpg::SaveMapInfo, int32_t> static_encounter_rate( 38 &rpg::SaveMapInfo::encounter_rate, 39 LSD_Reader::ChunkSaveMapInfo::encounter_rate, 40 "encounter_rate", 41 0, 42 0 43 ); 44 static TypedField<rpg::SaveMapInfo, int32_t> static_chipset_id( 45 &rpg::SaveMapInfo::chipset_id, 46 LSD_Reader::ChunkSaveMapInfo::chipset_id, 47 "chipset_id", 48 0, 49 0 50 ); 51 static TypedField<rpg::SaveMapInfo, std::vector<rpg::SaveMapEvent>> static_events( 52 &rpg::SaveMapInfo::events, 53 LSD_Reader::ChunkSaveMapInfo::events, 54 "events", 55 1, 56 0 57 ); 58 static TypedField<rpg::SaveMapInfo, std::vector<uint8_t>> static_lower_tiles( 59 &rpg::SaveMapInfo::lower_tiles, 60 LSD_Reader::ChunkSaveMapInfo::lower_tiles, 61 "lower_tiles", 62 1, 63 0 64 ); 65 static TypedField<rpg::SaveMapInfo, std::vector<uint8_t>> static_upper_tiles( 66 &rpg::SaveMapInfo::upper_tiles, 67 LSD_Reader::ChunkSaveMapInfo::upper_tiles, 68 "upper_tiles", 69 1, 70 0 71 ); 72 static TypedField<rpg::SaveMapInfo, std::string> static_parallax_name( 73 &rpg::SaveMapInfo::parallax_name, 74 LSD_Reader::ChunkSaveMapInfo::parallax_name, 75 "parallax_name", 76 0, 77 0 78 ); 79 static TypedField<rpg::SaveMapInfo, bool> static_parallax_horz( 80 &rpg::SaveMapInfo::parallax_horz, 81 LSD_Reader::ChunkSaveMapInfo::parallax_horz, 82 "parallax_horz", 83 0, 84 0 85 ); 86 static TypedField<rpg::SaveMapInfo, bool> static_parallax_vert( 87 &rpg::SaveMapInfo::parallax_vert, 88 LSD_Reader::ChunkSaveMapInfo::parallax_vert, 89 "parallax_vert", 90 0, 91 0 92 ); 93 static TypedField<rpg::SaveMapInfo, bool> static_parallax_horz_auto( 94 &rpg::SaveMapInfo::parallax_horz_auto, 95 LSD_Reader::ChunkSaveMapInfo::parallax_horz_auto, 96 "parallax_horz_auto", 97 0, 98 0 99 ); 100 static TypedField<rpg::SaveMapInfo, int32_t> static_parallax_horz_speed( 101 &rpg::SaveMapInfo::parallax_horz_speed, 102 LSD_Reader::ChunkSaveMapInfo::parallax_horz_speed, 103 "parallax_horz_speed", 104 0, 105 0 106 ); 107 static TypedField<rpg::SaveMapInfo, bool> static_parallax_vert_auto( 108 &rpg::SaveMapInfo::parallax_vert_auto, 109 LSD_Reader::ChunkSaveMapInfo::parallax_vert_auto, 110 "parallax_vert_auto", 111 0, 112 0 113 ); 114 static TypedField<rpg::SaveMapInfo, int32_t> static_parallax_vert_speed( 115 &rpg::SaveMapInfo::parallax_vert_speed, 116 LSD_Reader::ChunkSaveMapInfo::parallax_vert_speed, 117 "parallax_vert_speed", 118 0, 119 0 120 ); 121 122 123 template <> 124 Field<rpg::SaveMapInfo> const* Struct<rpg::SaveMapInfo>::fields[] = { 125 &static_position_x, 126 &static_position_y, 127 &static_encounter_rate, 128 &static_chipset_id, 129 &static_events, 130 &static_lower_tiles, 131 &static_upper_tiles, 132 &static_parallax_name, 133 &static_parallax_horz, 134 &static_parallax_vert, 135 &static_parallax_horz_auto, 136 &static_parallax_horz_speed, 137 &static_parallax_vert_auto, 138 &static_parallax_vert_speed, 139 NULL 140 }; 141 142 template class Struct<rpg::SaveMapInfo>; 143 144 } //namespace lcf 145