void InsertMeshCommand::serialize(Lumix::JsonSerializer& serializer)
{
	serializer.serialize("path", m_mesh_path.c_str());
	serializer.beginArray("pos");
	serializer.serializeArrayItem(m_position.x);
	serializer.serializeArrayItem(m_position.y);
	serializer.serializeArrayItem(m_position.z);
	serializer.endArray();
}
Beispiel #2
0
	virtual void serialize(Lumix::JsonSerializer& serializer)
	{
		serializer.serialize("parent", m_new_parent);
		serializer.serialize("child", m_child);
	}