/* !!!! 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 "ldb_reader.h"
#include "ldb_chunks.h"
#include "reader_struct_impl.h"

// Read Attribute.

template <>
char const* const Struct<RPG::Attribute>::name = "Attribute";
static TypedField<RPG::Attribute, std::string> static_name(
	&RPG::Attribute::name,
	LDB_Reader::ChunkAttribute::name,
	"name",
	0,
	0
);
static TypedField<RPG::Attribute, int32_t> static_type(
	&RPG::Attribute::type,
	LDB_Reader::ChunkAttribute::type,
	"type",
	1,
	0
);
static TypedField<RPG::Attribute, int32_t> static_a_rate(
	&RPG::Attribute::a_rate,
	LDB_Reader::ChunkAttribute::a_rate,
	"a_rate",
	0,
	0
);
static TypedField<RPG::Attribute, int32_t> static_b_rate(
	&RPG::Attribute::b_rate,
	LDB_Reader::ChunkAttribute::b_rate,
	"b_rate",
	0,
	0
);
static TypedField<RPG::Attribute, int32_t> static_c_rate(
	&RPG::Attribute::c_rate,
	LDB_Reader::ChunkAttribute::c_rate,
	"c_rate",
	0,
	0
);
static TypedField<RPG::Attribute, int32_t> static_d_rate(
	&RPG::Attribute::d_rate,
	LDB_Reader::ChunkAttribute::d_rate,
	"d_rate",
	0,
	0
);
static TypedField<RPG::Attribute, int32_t> static_e_rate(
	&RPG::Attribute::e_rate,
	LDB_Reader::ChunkAttribute::e_rate,
	"e_rate",
	0,
	0
);


template <>
Field<RPG::Attribute> const* Struct<RPG::Attribute>::fields[] = {
	&static_name,
	&static_type,
	&static_a_rate,
	&static_b_rate,
	&static_c_rate,
	&static_d_rate,
	&static_e_rate,
	NULL
};

template class Struct<RPG::Attribute>;
