25 static void ReadLcf(std::vector<RPG::MoveCommand>& ref,
LcfReader& stream, uint32_t length);
26 static void WriteLcf(
const std::vector<RPG::MoveCommand>& ref,
LcfWriter& stream);
27 static int LcfSize(
const std::vector<RPG::MoveCommand>& ref,
LcfWriter& stream);
28 static void WriteXml(
const std::vector<RPG::MoveCommand>& ref,
XmlWriter& stream);
140 if (strcmp(name,
"command_id") == 0)
142 else if (strcmp(name,
"parameter_a") == 0)
144 else if (strcmp(name,
"parameter_b") == 0)
146 else if (strcmp(name,
"parameter_c") == 0)
148 else if (strcmp(name,
"parameter_string") == 0)
151 stream.
Error(
"Unrecognized field '%s'", name);
176 unsigned long startpos = stream.
Tell();
177 unsigned long endpos = startpos + length;
178 while (stream.
Tell() != endpos) {
181 ref.push_back(command);
186 std::vector<RPG::MoveCommand>::const_iterator it;
187 for (it = ref.begin(); it != ref.end(); it++)
193 std::vector<RPG::MoveCommand>::const_iterator it;
194 for (it = ref.begin(); it != ref.end(); it++)
200 std::vector<RPG::MoveCommand>::const_iterator it;
201 for (it = ref.begin(); it != ref.end(); it++)
210 if (strcmp(name,
"MoveCommand") != 0)
211 stream.
Error(
"Expecting %s but got %s",
"MoveCommand", name);
212 ref.resize(
ref.size() + 1);
217 std::vector<RPG::MoveCommand>&
ref;