Remove unessessary template arguments
MODIFY
src/ldb_eventcommand.cpp
src/ldb_eventcommand.cpp
@@ -80,10 +80,10 @@ int RawStruct<rpg::EventCommand>::LcfSize(const rpg::EventCommand& event_command
void RawStruct<rpg::EventCommand>::WriteXml(const rpg::EventCommand& event_command, XmlWriter& stream) {
stream.BeginElement("EventCommand");
- stream.WriteNode<int32_t>("code", event_command.code);
- stream.WriteNode<int32_t>("indent", event_command.indent);
- stream.WriteNode<std::string>("string", event_command.string);
- stream.WriteNode<std::vector<int32_t>>("parameters", event_command.parameters);
+ stream.WriteNode("code", event_command.code);
+ stream.WriteNode("indent", event_command.indent);
+ stream.WriteNode("string", event_command.string);
+ stream.WriteNode("parameters", event_command.parameters);
stream.EndElement("EventCommand");
}
@@ -121,16 +121,16 @@ public:
case None:
break;
case Code:
- XmlReader::Read<int32_t>(ref.code, data);
+ XmlReader::Read(ref.code, data);
break;
case Indent:
- XmlReader::Read<int32_t>(ref.indent, data);
+ XmlReader::Read(ref.indent, data);
break;
case String:
- XmlReader::Read<std::string>(ref.string, data);
+ XmlReader::Read(ref.string, data);
break;
case Parameters:
- XmlReader::Read<std::vector<int32_t>>(ref.parameters, data);
+ XmlReader::Read(ref.parameters, data);
break;
}
}

MODIFY
src/lmu_movecommand.cpp
src/lmu_movecommand.cpp
@@ -114,24 +114,24 @@ int RawStruct<rpg::MoveCommand>::LcfSize(const rpg::MoveCommand& ref, LcfWriter&
void RawStruct<rpg::MoveCommand>::WriteXml(const rpg::MoveCommand& ref, XmlWriter& stream) {
stream.BeginElement("MoveCommand");
- stream.WriteNode<int32_t>("command_id", ref.command_id);
+ stream.WriteNode("command_id", ref.command_id);
const auto cmd = static_cast<rpg::MoveCommand::Code>(ref.command_id);
switch (cmd) {
case rpg::MoveCommand::Code::switch_on:
- stream.WriteNode<int32_t>("parameter_a", ref.parameter_a);
+ stream.WriteNode("parameter_a", ref.parameter_a);
break;
case rpg::MoveCommand::Code::switch_off:
- stream.WriteNode<int32_t>("parameter_a", ref.parameter_a);
+ stream.WriteNode("parameter_a", ref.parameter_a);
break;
case rpg::MoveCommand::Code::change_graphic:
- stream.WriteNode<std::string>("parameter_string", ref.parameter_string);
- stream.WriteNode<int32_t>("parameter_a", ref.parameter_a);
+ stream.WriteNode("parameter_string", ref.parameter_string);
+ stream.WriteNode("parameter_a", ref.parameter_a);
break;
case rpg::MoveCommand::Code::play_sound_effect:
- stream.WriteNode<std::string>("parameter_string", ref.parameter_string);
- stream.WriteNode<int32_t>("parameter_a", ref.parameter_a);
- stream.WriteNode<int32_t>("parameter_b", ref.parameter_b);
- stream.WriteNode<int32_t>("parameter_c", ref.parameter_c);
+ stream.WriteNode("parameter_string", ref.parameter_string);
+ stream.WriteNode("parameter_a", ref.parameter_a);
+ stream.WriteNode("parameter_b", ref.parameter_b);
+ stream.WriteNode("parameter_c", ref.parameter_c);
break;
default: break;
}
@@ -169,9 +169,9 @@ public:
}
void CharacterData(XmlReader& /* stream */, const std::string& data) {
if (field != NULL)
- XmlReader::Read<int32_t>(*field, data);
+ XmlReader::Read(*field, data);
else if (parameter_string)
- XmlReader::Read<std::string>(ref.parameter_string, data);
+ XmlReader::Read(ref.parameter_string, data);
}
};

Remove unessessary template arguments