mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
* Begun work on Primitive Duplication. Not hooked up yet, but theoretically could be done so. In practice, more work needs to be done.
This commit is contained in:
@@ -55,6 +55,7 @@ namespace OpenSim.Region.ClientStack
|
||||
public event LinkObjects OnLinkObjects;
|
||||
public event UpdateVector OnGrapObject;
|
||||
public event ObjectSelect OnDeGrapObject;
|
||||
public event ObjectDuplicate OnObjectDuplicate;
|
||||
public event MoveObject OnGrapUpdate;
|
||||
public event GenericCall4 OnAddPrim;
|
||||
public event UpdateShape OnUpdatePrimShape;
|
||||
|
||||
@@ -233,6 +233,18 @@ namespace OpenSim.Region.ClientStack
|
||||
}
|
||||
}
|
||||
break;
|
||||
case PacketType.ObjectDuplicate:
|
||||
ObjectDuplicatePacket dupe = (ObjectDuplicatePacket)Pack;
|
||||
for (int i = 0; i < dupe.ObjectData.Length; i++)
|
||||
{
|
||||
if (OnObjectDuplicate != null)
|
||||
{
|
||||
OnObjectDuplicate(dupe.ObjectData[i].ObjectLocalID, dupe.SharedData.Offset, dupe.SharedData.DuplicateFlags);
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case PacketType.ObjectSelect:
|
||||
ObjectSelectPacket incomingselect = (ObjectSelectPacket)Pack;
|
||||
for (int i = 0; i < incomingselect.ObjectData.Length; i++)
|
||||
|
||||
Reference in New Issue
Block a user