diff options
author | MW | 2007-06-12 16:00:25 +0000 |
---|---|---|
committer | MW | 2007-06-12 16:00:25 +0000 |
commit | b0ac0c7f7b316baa19f8865b3edf1dbcb0b31bfe (patch) | |
tree | c597d697a82c9e242f24cf3e250508bcde796902 /OpenSim/OpenSim.RegionServer/ClientView/ClientView.PacketHandlers.cs | |
parent | Work on Primitive class. (diff) | |
download | opensim-SC-b0ac0c7f7b316baa19f8865b3edf1dbcb0b31bfe.zip opensim-SC-b0ac0c7f7b316baa19f8865b3edf1dbcb0b31bfe.tar.gz opensim-SC-b0ac0c7f7b316baa19f8865b3edf1dbcb0b31bfe.tar.bz2 opensim-SC-b0ac0c7f7b316baa19f8865b3edf1dbcb0b31bfe.tar.xz |
Deleted ClientView.Grid.cs (Unused).
Added one or two new helper functions to ClientView.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/OpenSim.RegionServer/ClientView/ClientView.PacketHandlers.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/OpenSim/OpenSim.RegionServer/ClientView/ClientView.PacketHandlers.cs b/OpenSim/OpenSim.RegionServer/ClientView/ClientView.PacketHandlers.cs index d35868e..035eb4c 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView/ClientView.PacketHandlers.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView/ClientView.PacketHandlers.cs | |||
@@ -189,5 +189,34 @@ namespace OpenSim | |||
189 | } | 189 | } |
190 | this.OutPacket(mbReply); | 190 | this.OutPacket(mbReply); |
191 | } | 191 | } |
192 | |||
193 | protected PrimData CreatePrimFromObjectAdd(ObjectAddPacket addPacket) | ||
194 | { | ||
195 | PrimData PData = new PrimData(); | ||
196 | PData.CreationDate = (Int32)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; | ||
197 | PData.PCode = addPacket.ObjectData.PCode; | ||
198 | PData.PathBegin = addPacket.ObjectData.PathBegin; | ||
199 | PData.PathEnd = addPacket.ObjectData.PathEnd; | ||
200 | PData.PathScaleX = addPacket.ObjectData.PathScaleX; | ||
201 | PData.PathScaleY = addPacket.ObjectData.PathScaleY; | ||
202 | PData.PathShearX = addPacket.ObjectData.PathShearX; | ||
203 | PData.PathShearY = addPacket.ObjectData.PathShearY; | ||
204 | PData.PathSkew = addPacket.ObjectData.PathSkew; | ||
205 | PData.ProfileBegin = addPacket.ObjectData.ProfileBegin; | ||
206 | PData.ProfileEnd = addPacket.ObjectData.ProfileEnd; | ||
207 | PData.Scale = addPacket.ObjectData.Scale; | ||
208 | PData.PathCurve = addPacket.ObjectData.PathCurve; | ||
209 | PData.ProfileCurve = addPacket.ObjectData.ProfileCurve; | ||
210 | PData.ParentID = 0; | ||
211 | PData.ProfileHollow = addPacket.ObjectData.ProfileHollow; | ||
212 | PData.PathRadiusOffset = addPacket.ObjectData.PathRadiusOffset; | ||
213 | PData.PathRevolutions = addPacket.ObjectData.PathRevolutions; | ||
214 | PData.PathTaperX = addPacket.ObjectData.PathTaperX; | ||
215 | PData.PathTaperY = addPacket.ObjectData.PathTaperY; | ||
216 | PData.PathTwist = addPacket.ObjectData.PathTwist; | ||
217 | PData.PathTwistBegin = addPacket.ObjectData.PathTwistBegin; | ||
218 | |||
219 | return PData; | ||
220 | } | ||
192 | } | 221 | } |
193 | } | 222 | } |