diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.API.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 42 |
1 files changed, 5 insertions, 37 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index 2be5b0e..98bc84d 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -1166,51 +1166,19 @@ namespace OpenSim.Region.ClientStack | |||
1166 | objdata.ObjectData[64] = 189; | 1166 | objdata.ObjectData[64] = 189; |
1167 | } | 1167 | } |
1168 | 1168 | ||
1169 | /// <summary> | ||
1170 | /// | ||
1171 | /// </summary> | ||
1172 | /// <param name="addPacket"></param> | ||
1173 | /// <returns></returns> | ||
1174 | protected PrimData CreatePrimFromObjectAdd(ObjectAddPacket addPacket) | ||
1175 | { | ||
1176 | PrimData PData = new PrimData(); | ||
1177 | PData.CreationDate = (Int32)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; | ||
1178 | PData.PCode = addPacket.ObjectData.PCode; | ||
1179 | PData.PathBegin = addPacket.ObjectData.PathBegin; | ||
1180 | PData.PathEnd = addPacket.ObjectData.PathEnd; | ||
1181 | PData.PathScaleX = addPacket.ObjectData.PathScaleX; | ||
1182 | PData.PathScaleY = addPacket.ObjectData.PathScaleY; | ||
1183 | PData.PathShearX = addPacket.ObjectData.PathShearX; | ||
1184 | PData.PathShearY = addPacket.ObjectData.PathShearY; | ||
1185 | PData.PathSkew = addPacket.ObjectData.PathSkew; | ||
1186 | PData.ProfileBegin = addPacket.ObjectData.ProfileBegin; | ||
1187 | PData.ProfileEnd = addPacket.ObjectData.ProfileEnd; | ||
1188 | PData.Scale = addPacket.ObjectData.Scale; | ||
1189 | PData.PathCurve = addPacket.ObjectData.PathCurve; | ||
1190 | PData.ProfileCurve = addPacket.ObjectData.ProfileCurve; | ||
1191 | PData.ParentID = 0; | ||
1192 | PData.ProfileHollow = addPacket.ObjectData.ProfileHollow; | ||
1193 | PData.PathRadiusOffset = addPacket.ObjectData.PathRadiusOffset; | ||
1194 | PData.PathRevolutions = addPacket.ObjectData.PathRevolutions; | ||
1195 | PData.PathTaperX = addPacket.ObjectData.PathTaperX; | ||
1196 | PData.PathTaperY = addPacket.ObjectData.PathTaperY; | ||
1197 | PData.PathTwist = addPacket.ObjectData.PathTwist; | ||
1198 | PData.PathTwistBegin = addPacket.ObjectData.PathTwistBegin; | ||
1199 | |||
1200 | return PData; | ||
1201 | } | ||
1202 | #endregion | 1169 | #endregion |
1203 | 1170 | ||
1204 | public void SendNameReply(LLUUID profileId, string firstname, string lastname) | 1171 | public void SendNameReply(LLUUID profileId, string firstname, string lastname) |
1205 | { | 1172 | { |
1206 | Encoding enc = Encoding.ASCII; | ||
1207 | UUIDNameReplyPacket packet = new UUIDNameReplyPacket(); | 1173 | UUIDNameReplyPacket packet = new UUIDNameReplyPacket(); |
1174 | |||
1208 | packet.UUIDNameBlock = new UUIDNameReplyPacket.UUIDNameBlockBlock[1]; | 1175 | packet.UUIDNameBlock = new UUIDNameReplyPacket.UUIDNameBlockBlock[1]; |
1209 | packet.UUIDNameBlock[0] = new UUIDNameReplyPacket.UUIDNameBlockBlock(); | 1176 | packet.UUIDNameBlock[0] = new UUIDNameReplyPacket.UUIDNameBlockBlock(); |
1210 | packet.UUIDNameBlock[0].ID = profileId; | 1177 | packet.UUIDNameBlock[0].ID = profileId; |
1211 | packet.UUIDNameBlock[0].FirstName = enc.GetBytes(firstname + "\0"); | 1178 | packet.UUIDNameBlock[0].FirstName = Helpers.StringToField( firstname ); |
1212 | packet.UUIDNameBlock[0].LastName = enc.GetBytes(lastname + "\0"); | 1179 | packet.UUIDNameBlock[0].LastName = Helpers.StringToField( lastname ); |
1213 | OutPacket((Packet)packet); | 1180 | |
1181 | OutPacket( packet ); | ||
1214 | } | 1182 | } |
1215 | } | 1183 | } |
1216 | } | 1184 | } |