liblcf
ldb_chunks.h
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 #ifndef LCF_LDB_CHUNKS_H
13 #define LCF_LDB_CHUNKS_H
14 
18 namespace LDB_Reader {
19  struct ChunkLearning {
20  enum Index {
22  level = 0x01,
24  skill_id = 0x02
25  };
26  };
27  struct ChunkActor {
28  enum Index {
30  name = 0x01,
32  title = 0x02,
38  transparent = 0x05,
40  initial_level = 0x07,
42  final_level = 0x08,
44  critical_hit = 0x09,
48  face_name = 0x0F,
50  face_index = 0x10,
52  two_weapon = 0x15,
56  auto_battle = 0x17,
58  super_guard = 0x18,
60  parameters = 0x1F,
62  exp_base = 0x29,
64  exp_inflation = 0x2A,
72  class_id = 0x39,
74  battle_x = 0x3B,
76  battle_y = 0x3C,
80  skills = 0x3F,
82  rename_skill = 0x42,
84  skill_name = 0x43,
88  state_ranks = 0x48,
94  battle_commands = 0x50
95  };
96  };
97  struct ChunkSound {
98  enum Index {
100  name = 0x01,
102  volume = 0x03,
104  tempo = 0x04,
106  balance = 0x05
107  };
108  };
110  enum Index {
112  frame = 0x01,
114  se = 0x02,
116  flash_scope = 0x03,
118  flash_red = 0x04,
120  flash_green = 0x05,
122  flash_blue = 0x06,
124  flash_power = 0x07,
126  screen_shake = 0x08
127  };
128  };
130  enum Index {
132  valid = 0x01,
134  cell_id = 0x02,
136  x = 0x03,
138  y = 0x04,
140  zoom = 0x05,
142  tone_red = 0x06,
144  tone_green = 0x07,
146  tone_blue = 0x08,
148  tone_gray = 0x09,
150  transparency = 0x0A
151  };
152  };
154  enum Index {
156  cells = 0x01
157  };
158  };
159  struct ChunkAnimation {
160  enum Index {
162  name = 0x01,
166  large = 0x03,
168  timings = 0x06,
170  scope = 0x09,
172  position = 0x0A,
174  frames = 0x0C
175  };
176  };
177  struct ChunkAttribute {
178  enum Index {
180  name = 0x01,
182  type = 0x02,
184  a_rate = 0x0B,
186  b_rate = 0x0C,
188  c_rate = 0x0D,
190  d_rate = 0x0E,
192  e_rate = 0x0F
193  };
194  };
196  enum Index {
198  name = 0x01,
200  type = 0x02
201  };
202  };
204  enum Index {
206  placement = 0x02,
210  row = 0x06,
212  battle_type = 0x07,
216  commands = 0x0A,
220  death_event = 0x10,
222  window_size = 0x14,
224  transparency = 0x18,
234  death_teleport_face = 0x1D
235  };
236  };
238  enum Index {
240  name = 0x01,
242  battler_name = 0x02,
248  animation_id = 0x05
249  };
250  };
252  enum Index {
254  name = 0x01,
256  speed = 0x02,
258  base_data = 0x0A,
260  weapon_data = 0x0B
261  };
262  };
264  enum Index {
266  move = 0x05,
268  after_image = 0x06,
270  pose = 0x0E
271  };
272  };
273  struct ChunkChipset {
274  enum Index {
276  name = 0x01,
278  chipset_name = 0x02,
280  terrain_data = 0x03,
288  animation_speed = 0x0C
289  };
290  };
291  struct ChunkClass {
292  enum Index {
294  name = 0x01,
296  two_weapon = 0x15,
300  auto_battle = 0x17,
302  super_guard = 0x18,
304  parameters = 0x1F,
306  exp_base = 0x29,
314  skills = 0x3F,
318  state_ranks = 0x48,
324  battle_commands = 0x50
325  };
326  };
328  enum Index {
330  name = 0x01,
332  trigger = 0x0B,
334  switch_flag = 0x0C,
336  switch_id = 0x0D,
340  event_commands = 0x16
341  };
342  };
343  struct ChunkSkill {
344  enum Index {
346  name = 0x01,
348  description = 0x02,
356  type = 0x08,
358  sp_type = 0x09,
360  sp_percent = 0x0A,
362  sp_cost = 0x0B,
364  scope = 0x0C,
366  switch_id = 0x0D,
368  animation_id = 0x0E,
370  sound_effect = 0x10,
380  magical_rate = 0x16,
382  variance = 0x17,
384  power = 0x18,
386  hit = 0x19,
388  affect_hp = 0x1F,
390  affect_sp = 0x20,
417  };
418  };
420  enum Index {
422  type = 0x03,
424  weapon_anim = 0x04,
426  movement = 0x05,
428  after_image = 0x06,
430  attacks = 0x07,
432  ranged = 0x08,
434  ranged_anim = 0x09,
436  ranged_speed = 0x0C,
438  battle_anim = 0x0D
439  };
440  };
441  struct ChunkItem {
442  enum Index {
444  name = 0x01,
446  description = 0x02,
448  type = 0x03,
450  price = 0x05,
452  uses = 0x06,
454  atk_points1 = 0x0B,
456  def_points1 = 0x0C,
458  spi_points1 = 0x0D,
460  agi_points1 = 0x0E,
462  two_handed = 0x0F,
464  sp_cost = 0x10,
466  hit = 0x11,
468  critical_hit = 0x12,
470  animation_id = 0x14,
472  preemptive = 0x15,
474  dual_attack = 0x16,
476  attack_all = 0x17,
484  half_sp_cost = 0x1B,
488  cursed = 0x1D,
490  entire_party = 0x1F,
494  recover_hp = 0x21,
498  recover_sp = 0x23,
502  ko_only = 0x26,
508  atk_points2 = 0x2B,
510  def_points2 = 0x2C,
512  spi_points2 = 0x2D,
514  agi_points2 = 0x2E,
518  skill_id = 0x35,
520  switch_id = 0x37,
528  actor_set = 0x3E,
532  state_set = 0x40,
538  state_chance = 0x43,
546  use_skill = 0x47,
550  class_set = 0x49,
554  ranged_target = 0x4C
555  };
556  };
558  enum Index {
560  kind = 0x01,
562  basic = 0x02,
564  skill_id = 0x03,
566  enemy_id = 0x04,
574  switch_id = 0x08,
576  switch_on = 0x09,
578  switch_on_id = 0x0A,
580  switch_off = 0x0B,
584  rating = 0x0D
585  };
586  };
587  struct ChunkEnemy {
588  enum Index {
590  name = 0x01,
592  battler_name = 0x02,
594  battler_hue = 0x03,
596  max_hp = 0x04,
598  max_sp = 0x05,
600  attack = 0x06,
602  defense = 0x07,
604  spirit = 0x08,
606  agility = 0x09,
608  transparent = 0x0A,
610  exp = 0x0B,
612  gold = 0x0C,
614  drop_id = 0x0D,
616  drop_prob = 0x0E,
618  critical_hit = 0x15,
622  miss = 0x1A,
624  levitate = 0x1C,
628  state_ranks = 0x20,
634  actions = 0x2A
635  };
636  };
638  enum Index {
640  enemy_id = 0x01,
642  x = 0x02,
644  y = 0x03,
646  invisible = 0x04
647  };
648  };
650  enum Index {
652  flags = 0x01,
654  switch_a_id = 0x02,
656  switch_b_id = 0x03,
658  variable_id = 0x04,
662  turn_a = 0x06,
664  turn_b = 0x07,
666  fatigue_min = 0x08,
668  fatigue_max = 0x09,
670  enemy_id = 0x0A,
672  enemy_hp_min = 0x0B,
674  enemy_hp_max = 0x0C,
676  actor_id = 0x0D,
678  actor_hp_min = 0x0E,
680  actor_hp_max = 0x0F,
684  turn_enemy_a = 0x11,
686  turn_enemy_b = 0x12,
690  turn_actor_a = 0x14,
692  turn_actor_b = 0x15,
696  command_id = 0x17
697  };
698  };
699  struct ChunkTroopPage {
700  enum Index {
702  condition = 0x02,
706  event_commands = 0x0C
707  };
708  };
709  struct ChunkTroop {
710  enum Index {
712  name = 0x01,
714  members = 0x02,
720  terrain_set = 0x05,
724  pages = 0x0B
725  };
726  };
727  struct ChunkTerrain {
728  enum Index {
730  name = 0x01,
732  damage = 0x02,
738  boat_pass = 0x05,
740  ship_pass = 0x06,
742  airship_pass = 0x07,
744  airship_land = 0x09,
746  bush_depth = 0x0B,
748  footstep = 0x0F,
750  on_damage_se = 0x10,
764  background_b = 0x1E,
788  grid_top_y = 0x2E,
792  grid_inclination = 0x30
793  };
794  };
795  struct ChunkState {
796  enum Index {
798  name = 0x01,
800  type = 0x02,
802  color = 0x03,
804  priority = 0x04,
806  restriction = 0x05,
808  a_rate = 0x0B,
810  b_rate = 0x0C,
812  c_rate = 0x0D,
814  d_rate = 0x0E,
816  e_rate = 0x0F,
818  hold_turn = 0x15,
824  affect_type = 0x1E,
840  cursed = 0x26,
880  sp_change_map_val = 0x44
881  };
882  };
883  struct ChunkTerms {
884  enum Index {
886  encounter = 0x01,
894  victory = 0x05,
896  defeat = 0x06,
898  exp_received = 0x07,
906  attacking = 0x0B,
912  defending = 0x0E,
914  observing = 0x0F,
916  focus = 0x10,
920  enemy_escape = 0x12,
938  dodge = 0x1B,
940  use_item = 0x1C,
942  hp_recovery = 0x1D,
956  level_up = 0x24,
960  battle_start = 0x26,
962  miss = 0x27,
968  shop_buy1 = 0x2B,
970  shop_sell1 = 0x2C,
972  shop_leave1 = 0x2D,
984  shop_sold1 = 0x33,
990  shop_buy2 = 0x38,
992  shop_sell2 = 0x39,
994  shop_leave2 = 0x3A,
1006  shop_sold2 = 0x40,
1012  shop_buy3 = 0x45,
1014  shop_sell3 = 0x46,
1016  shop_leave3 = 0x47,
1028  shop_sold3 = 0x4D,
1054  gold = 0x5F,
1058  battle_auto = 0x66,
1072  menu_save = 0x6E,
1074  menu_quit = 0x70,
1076  new_game = 0x72,
1078  load_game = 0x73,
1080  exit_game = 0x75,
1082  status = 0x76,
1084  row = 0x77,
1086  order = 0x78,
1088  wait_on = 0x79,
1090  wait_off = 0x7A,
1092  level = 0x7B,
1100  exp_short = 0x7F,
1102  lvl_short = 0x80,
1104  hp_short = 0x81,
1106  sp_short = 0x82,
1108  sp_cost = 0x83,
1110  attack = 0x84,
1112  defense = 0x85,
1114  spirit = 0x86,
1116  agility = 0x87,
1118  weapon = 0x88,
1120  shield = 0x89,
1122  armor = 0x8A,
1124  helmet = 0x8B,
1126  accessory = 0x8C,
1132  file = 0x94,
1136  yes = 0x98,
1138  no = 0x99
1139  };
1140  };
1141  struct ChunkMusic {
1142  enum Index {
1144  name = 0x01,
1146  fadein = 0x02,
1148  volume = 0x03,
1150  tempo = 0x04,
1152  balance = 0x05
1153  };
1154  };
1156  enum Index {
1158  actor_id = 0x01,
1160  level = 0x02,
1162  weapon_id = 0x0B,
1164  shield_id = 0x0C,
1166  armor_id = 0x0D,
1168  helmet_id = 0x0E,
1170  accessory_id = 0x0F
1171  };
1172  };
1173  struct ChunkSystem {
1174  enum Index {
1176  ldb_id = 0x0A,
1178  boat_name = 0x0B,
1180  ship_name = 0x0C,
1184  boat_index = 0x0E,
1186  ship_index = 0x0F,
1190  title_name = 0x11,
1194  system_name = 0x13,
1198  party_size = 0x15,
1200  party = 0x16,
1206  title_music = 0x1F,
1212  inn_music = 0x22,
1214  boat_music = 0x23,
1216  ship_music = 0x24,
1222  cursor_se = 0x29,
1224  decision_se = 0x2A,
1226  cancel_se = 0x2B,
1228  buzzer_se = 0x2C,
1230  battle_se = 0x2D,
1232  escape_se = 0x2E,
1240  dodge_se = 0x32,
1244  item_se = 0x34,
1260  font_id = 0x48,
1270  save_count = 0x5B,
1282  show_frame = 0x63,
1284  frame_name = 0x64,
1288  show_title = 0x6F
1289  };
1290  };
1291  struct ChunkSwitch {
1292  enum Index {
1294  name = 0x01
1295  };
1296  };
1297  struct ChunkVariable {
1298  enum Index {
1300  name = 0x01
1301  };
1302  };
1303  struct ChunkDatabase {
1304  enum Index {
1306  actors = 0x0B,
1308  skills = 0x0C,
1310  items = 0x0D,
1312  enemies = 0x0E,
1314  troops = 0x0F,
1316  terrains = 0x10,
1318  attributes = 0x11,
1320  states = 0x12,
1322  animations = 0x13,
1324  chipsets = 0x14,
1326  terms = 0x15,
1328  system = 0x16,
1330  switches = 0x17,
1332  variables = 0x18,
1336  version = 0x1A,
1344  classes = 0x1E,
1346  classD1 = 0x1F,
1348  battleranimations = 0x20
1349  };
1350  };
1351 }
1352 
1353 #endif