/* !!!! GENERATED FILE - DO NOT EDIT !!!!
 * --------------------------------------
 *
 * This file is part of liblcf. Copyright (c) 2020 liblcf authors.
 * https://github.com/EasyRPG/liblcf - https://easyrpg.org
 *
 * liblcf is Free/Libre Open Source Software, released under the MIT License.
 * For the full copyright and license information, please view the COPYING
 * file that was distributed with this source code.
 */

// Headers
#include "lmu_reader.h"
#include "lmu_chunks.h"
#include "reader_struct_impl.h"

// Read Map.

template <>
char const* const Struct<RPG::Map>::name = "Map";
static TypedField<RPG::Map, int32_t> static_chipset_id(
	&RPG::Map::chipset_id,
	LMU_Reader::ChunkMap::chipset_id,
	"chipset_id",
	0,
	0
);
static TypedField<RPG::Map, int32_t> static_width(
	&RPG::Map::width,
	LMU_Reader::ChunkMap::width,
	"width",
	0,
	0
);
static TypedField<RPG::Map, int32_t> static_height(
	&RPG::Map::height,
	LMU_Reader::ChunkMap::height,
	"height",
	0,
	0
);
static TypedField<RPG::Map, int32_t> static_scroll_type(
	&RPG::Map::scroll_type,
	LMU_Reader::ChunkMap::scroll_type,
	"scroll_type",
	1,
	0
);
static TypedField<RPG::Map, bool> static_parallax_flag(
	&RPG::Map::parallax_flag,
	LMU_Reader::ChunkMap::parallax_flag,
	"parallax_flag",
	0,
	0
);
static TypedField<RPG::Map, std::string> static_parallax_name(
	&RPG::Map::parallax_name,
	LMU_Reader::ChunkMap::parallax_name,
	"parallax_name",
	0,
	0
);
static TypedField<RPG::Map, bool> static_parallax_loop_x(
	&RPG::Map::parallax_loop_x,
	LMU_Reader::ChunkMap::parallax_loop_x,
	"parallax_loop_x",
	0,
	0
);
static TypedField<RPG::Map, bool> static_parallax_loop_y(
	&RPG::Map::parallax_loop_y,
	LMU_Reader::ChunkMap::parallax_loop_y,
	"parallax_loop_y",
	0,
	0
);
static TypedField<RPG::Map, bool> static_parallax_auto_loop_x(
	&RPG::Map::parallax_auto_loop_x,
	LMU_Reader::ChunkMap::parallax_auto_loop_x,
	"parallax_auto_loop_x",
	0,
	0
);
static TypedField<RPG::Map, int32_t> static_parallax_sx(
	&RPG::Map::parallax_sx,
	LMU_Reader::ChunkMap::parallax_sx,
	"parallax_sx",
	0,
	0
);
static TypedField<RPG::Map, bool> static_parallax_auto_loop_y(
	&RPG::Map::parallax_auto_loop_y,
	LMU_Reader::ChunkMap::parallax_auto_loop_y,
	"parallax_auto_loop_y",
	0,
	0
);
static TypedField<RPG::Map, int32_t> static_parallax_sy(
	&RPG::Map::parallax_sy,
	LMU_Reader::ChunkMap::parallax_sy,
	"parallax_sy",
	0,
	0
);
static TypedField<RPG::Map, bool> static_generator_flag(
	&RPG::Map::generator_flag,
	LMU_Reader::ChunkMap::generator_flag,
	"generator_flag",
	0,
	0
);
static TypedField<RPG::Map, int32_t> static_generator_mode(
	&RPG::Map::generator_mode,
	LMU_Reader::ChunkMap::generator_mode,
	"generator_mode",
	0,
	0
);
static TypedField<RPG::Map, bool> static_top_level(
	&RPG::Map::top_level,
	LMU_Reader::ChunkMap::top_level,
	"top_level",
	0,
	0
);
static TypedField<RPG::Map, int32_t> static_generator_tiles(
	&RPG::Map::generator_tiles,
	LMU_Reader::ChunkMap::generator_tiles,
	"generator_tiles",
	0,
	0
);
static TypedField<RPG::Map, int32_t> static_generator_width(
	&RPG::Map::generator_width,
	LMU_Reader::ChunkMap::generator_width,
	"generator_width",
	0,
	0
);
static TypedField<RPG::Map, int32_t> static_generator_height(
	&RPG::Map::generator_height,
	LMU_Reader::ChunkMap::generator_height,
	"generator_height",
	0,
	0
);
static TypedField<RPG::Map, bool> static_generator_surround(
	&RPG::Map::generator_surround,
	LMU_Reader::ChunkMap::generator_surround,
	"generator_surround",
	0,
	0
);
static TypedField<RPG::Map, bool> static_generator_upper_wall(
	&RPG::Map::generator_upper_wall,
	LMU_Reader::ChunkMap::generator_upper_wall,
	"generator_upper_wall",
	0,
	0
);
static TypedField<RPG::Map, bool> static_generator_floor_b(
	&RPG::Map::generator_floor_b,
	LMU_Reader::ChunkMap::generator_floor_b,
	"generator_floor_b",
	0,
	0
);
static TypedField<RPG::Map, bool> static_generator_floor_c(
	&RPG::Map::generator_floor_c,
	LMU_Reader::ChunkMap::generator_floor_c,
	"generator_floor_c",
	0,
	0
);
static TypedField<RPG::Map, bool> static_generator_extra_b(
	&RPG::Map::generator_extra_b,
	LMU_Reader::ChunkMap::generator_extra_b,
	"generator_extra_b",
	0,
	0
);
static TypedField<RPG::Map, bool> static_generator_extra_c(
	&RPG::Map::generator_extra_c,
	LMU_Reader::ChunkMap::generator_extra_c,
	"generator_extra_c",
	0,
	0
);
static TypedField<RPG::Map, std::vector<uint32_t>> static_generator_x(
	&RPG::Map::generator_x,
	LMU_Reader::ChunkMap::generator_x,
	"generator_x",
	0,
	0
);
static TypedField<RPG::Map, std::vector<uint32_t>> static_generator_y(
	&RPG::Map::generator_y,
	LMU_Reader::ChunkMap::generator_y,
	"generator_y",
	0,
	0
);
static TypedField<RPG::Map, std::vector<int16_t>> static_generator_tile_ids(
	&RPG::Map::generator_tile_ids,
	LMU_Reader::ChunkMap::generator_tile_ids,
	"generator_tile_ids",
	0,
	0
);
static TypedField<RPG::Map, std::vector<int16_t>> static_lower_layer(
	&RPG::Map::lower_layer,
	LMU_Reader::ChunkMap::lower_layer,
	"lower_layer",
	1,
	0
);
static TypedField<RPG::Map, std::vector<int16_t>> static_upper_layer(
	&RPG::Map::upper_layer,
	LMU_Reader::ChunkMap::upper_layer,
	"upper_layer",
	1,
	0
);
static TypedField<RPG::Map, std::vector<RPG::Event>> static_events(
	&RPG::Map::events,
	LMU_Reader::ChunkMap::events,
	"events",
	1,
	0
);
static TypedField<RPG::Map, int32_t> static_save_count_2k3e(
	&RPG::Map::save_count_2k3e,
	LMU_Reader::ChunkMap::save_count_2k3e,
	"save_count_2k3e",
	0,
	1
);
static TypedField<RPG::Map, int32_t> static_save_count(
	&RPG::Map::save_count,
	LMU_Reader::ChunkMap::save_count,
	"save_count",
	0,
	0
);


template <>
Field<RPG::Map> const* Struct<RPG::Map>::fields[] = {
	&static_chipset_id,
	&static_width,
	&static_height,
	&static_scroll_type,
	&static_parallax_flag,
	&static_parallax_name,
	&static_parallax_loop_x,
	&static_parallax_loop_y,
	&static_parallax_auto_loop_x,
	&static_parallax_sx,
	&static_parallax_auto_loop_y,
	&static_parallax_sy,
	&static_generator_flag,
	&static_generator_mode,
	&static_top_level,
	&static_generator_tiles,
	&static_generator_width,
	&static_generator_height,
	&static_generator_surround,
	&static_generator_upper_wall,
	&static_generator_floor_b,
	&static_generator_floor_c,
	&static_generator_extra_b,
	&static_generator_extra_c,
	&static_generator_x,
	&static_generator_y,
	&static_generator_tile_ids,
	&static_lower_layer,
	&static_upper_layer,
	&static_events,
	&static_save_count_2k3e,
	&static_save_count,
	NULL
};

template class Struct<RPG::Map>;
