diff options
author | MW | 2007-07-18 21:26:31 +0000 |
---|---|---|
committer | MW | 2007-07-18 21:26:31 +0000 |
commit | 4c8b8d22ff66605b11a4881cdb7004cb4ce49592 (patch) | |
tree | 6ba59b1027c989614e542b957ebcaeaa8fec0654 /OpenSim/Region/ClientStack | |
parent | Sculpted Prims should now work. (diff) | |
download | opensim-SC_OLD-4c8b8d22ff66605b11a4881cdb7004cb4ce49592.zip opensim-SC_OLD-4c8b8d22ff66605b11a4881cdb7004cb4ce49592.tar.gz opensim-SC_OLD-4c8b8d22ff66605b11a4881cdb7004cb4ce49592.tar.bz2 opensim-SC_OLD-4c8b8d22ff66605b11a4881cdb7004cb4ce49592.tar.xz |
A script/custom application should be able to add a particle system to a prim, just create a new libsecondlife.Primitive.ParticleSystem() and then call AddNewParticleSystem() on the OpenSim particle : we really need to rename our particle class to stop conflict with the one in libsl.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index 440f583..73b3887 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -719,9 +719,8 @@ namespace OpenSim.Region.ClientStack | |||
719 | 719 | ||
720 | this.OutPacket(attach); | 720 | this.OutPacket(attach); |
721 | } | 721 | } |
722 | |||
723 | 722 | ||
724 | public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, LLQuaternion rotation, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID) | 723 | public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, LLQuaternion rotation, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID, byte[] particleSystem) |
725 | { | 724 | { |
726 | ObjectUpdatePacket outPacket = new ObjectUpdatePacket(); | 725 | ObjectUpdatePacket outPacket = new ObjectUpdatePacket(); |
727 | outPacket.RegionData.RegionHandle = regionHandle; | 726 | outPacket.RegionData.RegionHandle = regionHandle; |
@@ -733,6 +732,7 @@ namespace OpenSim.Region.ClientStack | |||
733 | outPacket.ObjectData[0].OwnerID = ownerID; | 732 | outPacket.ObjectData[0].OwnerID = ownerID; |
734 | outPacket.ObjectData[0].Text = Helpers.StringToField( text ); | 733 | outPacket.ObjectData[0].Text = Helpers.StringToField( text ); |
735 | outPacket.ObjectData[0].ParentID = parentID; | 734 | outPacket.ObjectData[0].ParentID = parentID; |
735 | outPacket.ObjectData[0].PSBlock = particleSystem; | ||
736 | byte[] pb = pos.GetBytes(); | 736 | byte[] pb = pos.GetBytes(); |
737 | Array.Copy(pb, 0, outPacket.ObjectData[0].ObjectData, 0, pb.Length); | 737 | Array.Copy(pb, 0, outPacket.ObjectData[0].ObjectData, 0, pb.Length); |
738 | byte[] rot = rotation.GetBytes(); | 738 | byte[] rot = rotation.GetBytes(); |
@@ -740,7 +740,7 @@ namespace OpenSim.Region.ClientStack | |||
740 | OutPacket(outPacket); | 740 | OutPacket(outPacket); |
741 | } | 741 | } |
742 | 742 | ||
743 | public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID) | 743 | public void SendPrimitiveToClient(ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, uint flags, LLUUID objectID, LLUUID ownerID, string text, uint parentID, byte[] particleSystem) |
744 | { | 744 | { |
745 | ObjectUpdatePacket outPacket = new ObjectUpdatePacket(); | 745 | ObjectUpdatePacket outPacket = new ObjectUpdatePacket(); |
746 | outPacket.RegionData.RegionHandle = regionHandle; | 746 | outPacket.RegionData.RegionHandle = regionHandle; |
@@ -752,6 +752,7 @@ namespace OpenSim.Region.ClientStack | |||
752 | outPacket.ObjectData[0].OwnerID = ownerID; | 752 | outPacket.ObjectData[0].OwnerID = ownerID; |
753 | outPacket.ObjectData[0].Text = Helpers.StringToField( text ); | 753 | outPacket.ObjectData[0].Text = Helpers.StringToField( text ); |
754 | outPacket.ObjectData[0].ParentID = parentID; | 754 | outPacket.ObjectData[0].ParentID = parentID; |
755 | outPacket.ObjectData[0].PSBlock = particleSystem; | ||
755 | byte[] pb = pos.GetBytes(); | 756 | byte[] pb = pos.GetBytes(); |
756 | Array.Copy(pb, 0, outPacket.ObjectData[0].ObjectData, 0, pb.Length); | 757 | Array.Copy(pb, 0, outPacket.ObjectData[0].ObjectData, 0, pb.Length); |
757 | 758 | ||