diff options
author | UbitUmarov | 2018-11-17 16:04:55 +0000 |
---|---|---|
committer | UbitUmarov | 2018-11-17 16:04:55 +0000 |
commit | 1f5169e636c4f0e13d1b863ca22c9e5358588099 (patch) | |
tree | 26b609476435477127a05459d081ff1115d7ea78 /OpenSim/Region | |
parent | avoid a null ref on Bullet (diff) | |
download | opensim-SC-1f5169e636c4f0e13d1b863ca22c9e5358588099.zip opensim-SC-1f5169e636c4f0e13d1b863ca22c9e5358588099.tar.gz opensim-SC-1f5169e636c4f0e13d1b863ca22c9e5358588099.tar.bz2 opensim-SC-1f5169e636c4f0e13d1b863ca22c9e5358588099.tar.xz |
code aesthetics
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs index bcdc7bf..f4686ba 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptSerializer.cs | |||
@@ -114,49 +114,40 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
114 | 114 | ||
115 | foreach (DetectParams det in ep.DetectParams) | 115 | foreach (DetectParams det in ep.DetectParams) |
116 | { | 116 | { |
117 | XmlElement objectElem = xmldoc.CreateElement("", "Object", | 117 | XmlElement objectElem = xmldoc.CreateElement("", "Object", ""); |
118 | ""); | ||
119 | XmlAttribute pos = xmldoc.CreateAttribute("", "pos", ""); | 118 | XmlAttribute pos = xmldoc.CreateAttribute("", "pos", ""); |
120 | pos.Value = det.OffsetPos.ToString(); | 119 | pos.Value = det.OffsetPos.ToString(); |
121 | objectElem.Attributes.Append(pos); | 120 | objectElem.Attributes.Append(pos); |
122 | 121 | ||
123 | XmlAttribute d_linkNum = xmldoc.CreateAttribute("", | 122 | XmlAttribute d_linkNum = xmldoc.CreateAttribute("", "linkNum", ""); |
124 | "linkNum", ""); | ||
125 | d_linkNum.Value = det.LinkNum.ToString(); | 123 | d_linkNum.Value = det.LinkNum.ToString(); |
126 | objectElem.Attributes.Append(d_linkNum); | 124 | objectElem.Attributes.Append(d_linkNum); |
127 | 125 | ||
128 | XmlAttribute d_group = xmldoc.CreateAttribute("", | 126 | XmlAttribute d_group = xmldoc.CreateAttribute("", "group", ""); |
129 | "group", ""); | ||
130 | d_group.Value = det.Group.ToString(); | 127 | d_group.Value = det.Group.ToString(); |
131 | objectElem.Attributes.Append(d_group); | 128 | objectElem.Attributes.Append(d_group); |
132 | 129 | ||
133 | XmlAttribute d_name = xmldoc.CreateAttribute("", | 130 | XmlAttribute d_name = xmldoc.CreateAttribute("", "name", ""); |
134 | "name", ""); | ||
135 | d_name.Value = det.Name.ToString(); | 131 | d_name.Value = det.Name.ToString(); |
136 | objectElem.Attributes.Append(d_name); | 132 | objectElem.Attributes.Append(d_name); |
137 | 133 | ||
138 | XmlAttribute d_owner = xmldoc.CreateAttribute("", | 134 | XmlAttribute d_owner = xmldoc.CreateAttribute("", "owner", ""); |
139 | "owner", ""); | ||
140 | d_owner.Value = det.Owner.ToString(); | 135 | d_owner.Value = det.Owner.ToString(); |
141 | objectElem.Attributes.Append(d_owner); | 136 | objectElem.Attributes.Append(d_owner); |
142 | 137 | ||
143 | XmlAttribute d_position = xmldoc.CreateAttribute("", | 138 | XmlAttribute d_position = xmldoc.CreateAttribute("", "position", ""); |
144 | "position", ""); | ||
145 | d_position.Value = det.Position.ToString(); | 139 | d_position.Value = det.Position.ToString(); |
146 | objectElem.Attributes.Append(d_position); | 140 | objectElem.Attributes.Append(d_position); |
147 | 141 | ||
148 | XmlAttribute d_rotation = xmldoc.CreateAttribute("", | 142 | XmlAttribute d_rotation = xmldoc.CreateAttribute("", "rotation", ""); |
149 | "rotation", ""); | ||
150 | d_rotation.Value = det.Rotation.ToString(); | 143 | d_rotation.Value = det.Rotation.ToString(); |
151 | objectElem.Attributes.Append(d_rotation); | 144 | objectElem.Attributes.Append(d_rotation); |
152 | 145 | ||
153 | XmlAttribute d_type = xmldoc.CreateAttribute("", | 146 | XmlAttribute d_type = xmldoc.CreateAttribute("", "type", ""); |
154 | "type", ""); | ||
155 | d_type.Value = det.Type.ToString(); | 147 | d_type.Value = det.Type.ToString(); |
156 | objectElem.Attributes.Append(d_type); | 148 | objectElem.Attributes.Append(d_type); |
157 | 149 | ||
158 | XmlAttribute d_velocity = xmldoc.CreateAttribute("", | 150 | XmlAttribute d_velocity = xmldoc.CreateAttribute("", "velocity", ""); |
159 | "velocity", ""); | ||
160 | d_velocity.Value = det.Velocity.ToString(); | 151 | d_velocity.Value = det.Velocity.ToString(); |
161 | objectElem.Attributes.Append(d_velocity); | 152 | objectElem.Attributes.Append(d_velocity); |
162 | 153 | ||