liblcf
Loading...
Searching...
No Matches
ldb_commonevent.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) 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 "lcf/ldb/reader.h"
14#include "lcf/ldb/chunks.h"
15#include "reader_struct_impl.h"
16
17namespace lcf {
18
19// Read CommonEvent.
20
21template <>
22char const* const Struct<rpg::CommonEvent>::name = "CommonEvent";
24 &rpg::CommonEvent::name,
25 LDB_Reader::ChunkCommonEvent::name,
26 "name",
27 0,
28 0
29);
30static TypedField<rpg::CommonEvent, int32_t> static_trigger(
31 &rpg::CommonEvent::trigger,
32 LDB_Reader::ChunkCommonEvent::trigger,
33 "trigger",
34 0,
35 0
36);
37static TypedField<rpg::CommonEvent, bool> static_switch_flag(
38 &rpg::CommonEvent::switch_flag,
39 LDB_Reader::ChunkCommonEvent::switch_flag,
40 "switch_flag",
41 0,
42 0
43);
44static TypedField<rpg::CommonEvent, int32_t> static_switch_id(
45 &rpg::CommonEvent::switch_id,
46 LDB_Reader::ChunkCommonEvent::switch_id,
47 "switch_id",
48 0,
49 0
50);
51static SizeField<rpg::CommonEvent, std::vector<rpg::EventCommand>> static_size_event_commands(
52 &rpg::CommonEvent::event_commands,
53 LDB_Reader::ChunkCommonEvent::event_commands_size,
54 1,
55 0
56);
58 &rpg::CommonEvent::event_commands,
59 LDB_Reader::ChunkCommonEvent::event_commands,
60 "event_commands",
61 1,
62 0
63);
64
65
66template <>
68 &static_name,
69 &static_trigger,
70 &static_switch_flag,
71 &static_switch_id,
72 &static_size_event_commands,
73 &static_event_commands,
74 NULL
75};
76
77template class Struct<rpg::CommonEvent>;
78
79} //namespace lcf
static const Field< S > * fields[]
static const char *const name