code aesthetics

0.9.1.0-post-fixes
UbitUmarov 2018-11-17 16:04:55 +00:00
parent d43eeb1d9d
commit 1f5169e636
1 changed files with 9 additions and 18 deletions

View File

@ -114,49 +114,40 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
foreach (DetectParams det in ep.DetectParams) foreach (DetectParams det in ep.DetectParams)
{ {
XmlElement objectElem = xmldoc.CreateElement("", "Object", XmlElement objectElem = xmldoc.CreateElement("", "Object", "");
"");
XmlAttribute pos = xmldoc.CreateAttribute("", "pos", ""); XmlAttribute pos = xmldoc.CreateAttribute("", "pos", "");
pos.Value = det.OffsetPos.ToString(); pos.Value = det.OffsetPos.ToString();
objectElem.Attributes.Append(pos); objectElem.Attributes.Append(pos);
XmlAttribute d_linkNum = xmldoc.CreateAttribute("", XmlAttribute d_linkNum = xmldoc.CreateAttribute("", "linkNum", "");
"linkNum", "");
d_linkNum.Value = det.LinkNum.ToString(); d_linkNum.Value = det.LinkNum.ToString();
objectElem.Attributes.Append(d_linkNum); objectElem.Attributes.Append(d_linkNum);
XmlAttribute d_group = xmldoc.CreateAttribute("", XmlAttribute d_group = xmldoc.CreateAttribute("", "group", "");
"group", "");
d_group.Value = det.Group.ToString(); d_group.Value = det.Group.ToString();
objectElem.Attributes.Append(d_group); objectElem.Attributes.Append(d_group);
XmlAttribute d_name = xmldoc.CreateAttribute("", XmlAttribute d_name = xmldoc.CreateAttribute("", "name", "");
"name", "");
d_name.Value = det.Name.ToString(); d_name.Value = det.Name.ToString();
objectElem.Attributes.Append(d_name); objectElem.Attributes.Append(d_name);
XmlAttribute d_owner = xmldoc.CreateAttribute("", XmlAttribute d_owner = xmldoc.CreateAttribute("", "owner", "");
"owner", "");
d_owner.Value = det.Owner.ToString(); d_owner.Value = det.Owner.ToString();
objectElem.Attributes.Append(d_owner); objectElem.Attributes.Append(d_owner);
XmlAttribute d_position = xmldoc.CreateAttribute("", XmlAttribute d_position = xmldoc.CreateAttribute("", "position", "");
"position", "");
d_position.Value = det.Position.ToString(); d_position.Value = det.Position.ToString();
objectElem.Attributes.Append(d_position); objectElem.Attributes.Append(d_position);
XmlAttribute d_rotation = xmldoc.CreateAttribute("", XmlAttribute d_rotation = xmldoc.CreateAttribute("", "rotation", "");
"rotation", "");
d_rotation.Value = det.Rotation.ToString(); d_rotation.Value = det.Rotation.ToString();
objectElem.Attributes.Append(d_rotation); objectElem.Attributes.Append(d_rotation);
XmlAttribute d_type = xmldoc.CreateAttribute("", XmlAttribute d_type = xmldoc.CreateAttribute("", "type", "");
"type", "");
d_type.Value = det.Type.ToString(); d_type.Value = det.Type.ToString();
objectElem.Attributes.Append(d_type); objectElem.Attributes.Append(d_type);
XmlAttribute d_velocity = xmldoc.CreateAttribute("", XmlAttribute d_velocity = xmldoc.CreateAttribute("", "velocity", "");
"velocity", "");
d_velocity.Value = det.Velocity.ToString(); d_velocity.Value = det.Velocity.ToString();
objectElem.Attributes.Append(d_velocity); objectElem.Attributes.Append(d_velocity);