liblcf
ldb_troop.cpp
Go to the documentation of this file.
1 /* !!!! GENERATED FILE - DO NOT EDIT !!!!
2  * --------------------------------------
3  *
4  * This file is part of liblcf. Copyright (c) 2020 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 "ldb_reader.h"
14 #include "ldb_chunks.h"
15 #include "reader_struct_impl.h"
16 
17 // Read Troop.
18 
19 template <>
20 char const* const Struct<RPG::Troop>::name = "Troop";
21 static TypedField<RPG::Troop, std::string> static_name(
24  "name",
25  0,
26  0
27 );
31  "members",
32  1,
33  0
34 );
35 static TypedField<RPG::Troop, bool> static_auto_alignment(
38  "auto_alignment",
39  0,
40  1
41 );
42 static SizeField<RPG::Troop, bool> static_size_terrain_set(
45  0,
46  0
47 );
48 static TypedField<RPG::Troop, std::vector<bool>> static_terrain_set(
51  "terrain_set",
52  1,
53  0
54 );
55 static TypedField<RPG::Troop, bool> static_appear_randomly(
58  "appear_randomly",
59  0,
60  1
61 );
65  "pages",
66  1,
67  0
68 );
69 
70 
71 template <>
73  &static_name,
74  &static_members,
75  &static_auto_alignment,
76  &static_size_terrain_set,
77  &static_terrain_set,
78  &static_appear_randomly,
79  &static_pages,
80  NULL
81 };
82 
83 template class Struct<RPG::Troop>;
LDB_Reader::ChunkTroop::auto_alignment
@ auto_alignment
Definition: ldb_chunks.h:716
ldb_chunks.h
LDB_Reader::ChunkTroop::pages
@ pages
Definition: ldb_chunks.h:724
SizeField
Definition: reader_struct.h:436
Field
Definition: reader_struct.h:315
TypedField
Definition: reader_struct.h:348
RPG::Troop::appear_randomly
bool appear_randomly
Definition: rpg_troop.h:32
Struct
Definition: reader_struct.h:43
RPG::Troop::auto_alignment
bool auto_alignment
Definition: rpg_troop.h:30
RPG::Troop::terrain_set
std::vector< bool > terrain_set
Definition: rpg_troop.h:31
LDB_Reader::ChunkTroop::terrain_set_size
@ terrain_set_size
Definition: ldb_chunks.h:718
LDB_Reader::ChunkTroop::terrain_set
@ terrain_set
Definition: ldb_chunks.h:720
LDB_Reader::ChunkTroop::members
@ members
Definition: ldb_chunks.h:714
RPG::Troop::members
std::vector< TroopMember > members
Definition: rpg_troop.h:29
RPG::Troop::name
std::string name
Definition: rpg_troop.h:28
LDB_Reader::ChunkTroop::appear_randomly
@ appear_randomly
Definition: ldb_chunks.h:722
reader_struct_impl.h
LDB_Reader::ChunkTroop::name
@ name
Definition: ldb_chunks.h:712
RPG::Troop::pages
std::vector< TroopPage > pages
Definition: rpg_troop.h:33
ldb_reader.h