liblcf
Loading...
Searching...
No Matches
ldb_trooppagecondition.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 TroopPageCondition.
18
19template <>
20char const* const Struct<RPG::TroopPageCondition>::name = "TroopPageCondition";
24 "flags",
25 1,
26 0
27);
28static TypedField<RPG::TroopPageCondition, int32_t> static_switch_a_id(
31 "switch_a_id",
32 0,
33 0
34);
35static TypedField<RPG::TroopPageCondition, int32_t> static_switch_b_id(
38 "switch_b_id",
39 0,
40 0
41);
42static TypedField<RPG::TroopPageCondition, int32_t> static_variable_id(
45 "variable_id",
46 0,
47 0
48);
49static TypedField<RPG::TroopPageCondition, int32_t> static_variable_value(
52 "variable_value",
53 0,
54 0
55);
59 "turn_a",
60 0,
61 0
62);
66 "turn_b",
67 0,
68 0
69);
70static TypedField<RPG::TroopPageCondition, int32_t> static_fatigue_min(
73 "fatigue_min",
74 0,
75 0
76);
77static TypedField<RPG::TroopPageCondition, int32_t> static_fatigue_max(
80 "fatigue_max",
81 0,
82 0
83);
87 "enemy_id",
88 0,
89 0
90);
91static TypedField<RPG::TroopPageCondition, int32_t> static_enemy_hp_min(
94 "enemy_hp_min",
95 0,
96 0
97);
98static TypedField<RPG::TroopPageCondition, int32_t> static_enemy_hp_max(
101 "enemy_hp_max",
102 0,
103 0
104);
108 "actor_id",
109 0,
110 0
111);
112static TypedField<RPG::TroopPageCondition, int32_t> static_actor_hp_min(
115 "actor_hp_min",
116 0,
117 0
118);
119static TypedField<RPG::TroopPageCondition, int32_t> static_actor_hp_max(
122 "actor_hp_max",
123 0,
124 0
125);
126static TypedField<RPG::TroopPageCondition, int32_t> static_turn_enemy_id(
129 "turn_enemy_id",
130 0,
131 1
132);
133static TypedField<RPG::TroopPageCondition, int32_t> static_turn_enemy_a(
136 "turn_enemy_a",
137 0,
138 1
139);
140static TypedField<RPG::TroopPageCondition, int32_t> static_turn_enemy_b(
143 "turn_enemy_b",
144 0,
145 1
146);
147static TypedField<RPG::TroopPageCondition, int32_t> static_turn_actor_id(
150 "turn_actor_id",
151 0,
152 1
153);
154static TypedField<RPG::TroopPageCondition, int32_t> static_turn_actor_a(
157 "turn_actor_a",
158 0,
159 1
160);
161static TypedField<RPG::TroopPageCondition, int32_t> static_turn_actor_b(
164 "turn_actor_b",
165 0,
166 1
167);
168static TypedField<RPG::TroopPageCondition, int32_t> static_command_actor_id(
171 "command_actor_id",
172 0,
173 1
174);
175static TypedField<RPG::TroopPageCondition, int32_t> static_command_id(
178 "command_id",
179 0,
180 1
181);
182
183
184template <>
186 &static_flags,
187 &static_switch_a_id,
188 &static_switch_b_id,
189 &static_variable_id,
190 &static_variable_value,
191 &static_turn_a,
192 &static_turn_b,
193 &static_fatigue_min,
194 &static_fatigue_max,
195 &static_enemy_id,
196 &static_enemy_hp_min,
197 &static_enemy_hp_max,
198 &static_actor_id,
199 &static_actor_hp_min,
200 &static_actor_hp_max,
201 &static_turn_enemy_id,
202 &static_turn_enemy_a,
203 &static_turn_enemy_b,
204 &static_turn_actor_id,
205 &static_turn_actor_a,
206 &static_turn_actor_b,
207 &static_command_actor_id,
208 &static_command_id,
209 NULL
210};
211
struct RPG::TroopPageCondition::Flags flags