diff options
author | Adam Frisby | 2007-07-09 15:29:39 +0000 |
---|---|---|
committer | Adam Frisby | 2007-07-09 15:29:39 +0000 |
commit | e8acf1cca92592fea38208dbfe4137555431434d (patch) | |
tree | 4d8b6353f1baab805b17caec835d93ee0ef6817e /OpenSim/Region/ClientStack | |
parent | * reverted rev 1200 waiting for info re animations.xml (diff) | |
download | opensim-SC_OLD-e8acf1cca92592fea38208dbfe4137555431434d.zip opensim-SC_OLD-e8acf1cca92592fea38208dbfe4137555431434d.tar.gz opensim-SC_OLD-e8acf1cca92592fea38208dbfe4137555431434d.tar.bz2 opensim-SC_OLD-e8acf1cca92592fea38208dbfe4137555431434d.tar.xz |
* Begun work on Primitive Duplication. Not hooked up yet, but theoretically could be done so. In practice, more work needs to be done.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 1 | ||||
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index cefe856..3c1df75 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -55,6 +55,7 @@ namespace OpenSim.Region.ClientStack | |||
55 | public event LinkObjects OnLinkObjects; | 55 | public event LinkObjects OnLinkObjects; |
56 | public event UpdateVector OnGrapObject; | 56 | public event UpdateVector OnGrapObject; |
57 | public event ObjectSelect OnDeGrapObject; | 57 | public event ObjectSelect OnDeGrapObject; |
58 | public event ObjectDuplicate OnObjectDuplicate; | ||
58 | public event MoveObject OnGrapUpdate; | 59 | public event MoveObject OnGrapUpdate; |
59 | public event GenericCall4 OnAddPrim; | 60 | public event GenericCall4 OnAddPrim; |
60 | public event UpdateShape OnUpdatePrimShape; | 61 | public event UpdateShape OnUpdatePrimShape; |
diff --git a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs index def14c7..982ae50 100644 --- a/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs +++ b/OpenSim/Region/ClientStack/ClientView.ProcessPackets.cs | |||
@@ -233,6 +233,18 @@ namespace OpenSim.Region.ClientStack | |||
233 | } | 233 | } |
234 | } | 234 | } |
235 | break; | 235 | break; |
236 | case PacketType.ObjectDuplicate: | ||
237 | ObjectDuplicatePacket dupe = (ObjectDuplicatePacket)Pack; | ||
238 | for (int i = 0; i < dupe.ObjectData.Length; i++) | ||
239 | { | ||
240 | if (OnObjectDuplicate != null) | ||
241 | { | ||
242 | OnObjectDuplicate(dupe.ObjectData[i].ObjectLocalID, dupe.SharedData.Offset, dupe.SharedData.DuplicateFlags); | ||
243 | } | ||
244 | } | ||
245 | |||
246 | break; | ||
247 | |||
236 | case PacketType.ObjectSelect: | 248 | case PacketType.ObjectSelect: |
237 | ObjectSelectPacket incomingselect = (ObjectSelectPacket)Pack; | 249 | ObjectSelectPacket incomingselect = (ObjectSelectPacket)Pack; |
238 | for (int i = 0; i < incomingselect.ObjectData.Length; i++) | 250 | for (int i = 0; i < incomingselect.ObjectData.Length; i++) |