aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.API.cs
diff options
context:
space:
mode:
authorlbsa712007-08-06 12:49:08 +0000
committerlbsa712007-08-06 12:49:08 +0000
commit95de99ff0a2f1d810c3f3dffc7a55cee98d5f28f (patch)
treea441b5906df6b6a665c91696d38587f3f8c8d615 /OpenSim/Region/ClientStack/ClientView.API.cs
parent* SimpleApp works again: (diff)
downloadopensim-SC_OLD-95de99ff0a2f1d810c3f3dffc7a55cee98d5f28f.zip
opensim-SC_OLD-95de99ff0a2f1d810c3f3dffc7a55cee98d5f28f.tar.gz
opensim-SC_OLD-95de99ff0a2f1d810c3f3dffc7a55cee98d5f28f.tar.bz2
opensim-SC_OLD-95de99ff0a2f1d810c3f3dffc7a55cee98d5f28f.tar.xz
* Now we have boxes. Yay!
* Removed unused SendPrimitiveToClient that didn't have rot.
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.API.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.API.cs36
1 files changed, 13 insertions, 23 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs
index 610bfd1..fb0ec29 100644
--- a/OpenSim/Region/ClientStack/ClientView.API.cs
+++ b/OpenSim/Region/ClientStack/ClientView.API.cs
@@ -673,6 +673,8 @@ namespace OpenSim.Region.ClientStack
673 OutPacket(loadURL); 673 OutPacket(loadURL);
674 } 674 }
675 675
676 #endregion
677
676 #region Appearance/ Wearables Methods 678 #region Appearance/ Wearables Methods
677 679
678 /// <summary> 680 /// <summary>
@@ -817,44 +819,33 @@ namespace OpenSim.Region.ClientStack
817 this.OutPacket(attach); 819 this.OutPacket(attach);
818 } 820 }
819 821
820 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) 822 public void SendPrimitiveToClient(
823 ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape, LLVector3 pos, uint flags,
824 LLUUID objectID, LLUUID ownerID, string text, uint parentID, byte[] particleSystem, LLQuaternion rotation)
821 { 825 {
822 ObjectUpdatePacket outPacket = new ObjectUpdatePacket(); 826 ObjectUpdatePacket outPacket = new ObjectUpdatePacket();
823 outPacket.RegionData.RegionHandle = regionHandle; 827 outPacket.RegionData.RegionHandle = regionHandle;
824 outPacket.RegionData.TimeDilation = timeDilation; 828 outPacket.RegionData.TimeDilation = timeDilation;
825 outPacket.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1]; 829 outPacket.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1];
830
826 outPacket.ObjectData[0] = this.CreatePrimUpdateBlock(primShape, flags); 831 outPacket.ObjectData[0] = this.CreatePrimUpdateBlock(primShape, flags);
832
827 outPacket.ObjectData[0].ID = localID; 833 outPacket.ObjectData[0].ID = localID;
828 outPacket.ObjectData[0].FullID = objectID; 834 outPacket.ObjectData[0].FullID = objectID;
829 outPacket.ObjectData[0].OwnerID = ownerID; 835 outPacket.ObjectData[0].OwnerID = ownerID;
830 outPacket.ObjectData[0].Text = Helpers.StringToField( text ); 836 outPacket.ObjectData[0].Text = Helpers.StringToField( text );
831 outPacket.ObjectData[0].ParentID = parentID; 837 outPacket.ObjectData[0].ParentID = parentID;
832 outPacket.ObjectData[0].PSBlock = particleSystem; 838 outPacket.ObjectData[0].PSBlock = particleSystem;
839
833 byte[] pb = pos.GetBytes(); 840 byte[] pb = pos.GetBytes();
834 Array.Copy(pb, 0, outPacket.ObjectData[0].ObjectData, 0, pb.Length); 841 Array.Copy(pb, 0, outPacket.ObjectData[0].ObjectData, 0, pb.Length);
842
835 byte[] rot = rotation.GetBytes(); 843 byte[] rot = rotation.GetBytes();
836 Array.Copy(rot, 0, outPacket.ObjectData[0].ObjectData, 36, rot.Length); 844 Array.Copy(rot, 0, outPacket.ObjectData[0].ObjectData, 36, rot.Length);
845
837 OutPacket(outPacket); 846 OutPacket(outPacket);
838 } 847 }
839 848
840 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)
841 {
842 ObjectUpdatePacket outPacket = new ObjectUpdatePacket();
843 outPacket.RegionData.RegionHandle = regionHandle;
844 outPacket.RegionData.TimeDilation = timeDilation;
845 outPacket.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[1];
846 outPacket.ObjectData[0] = this.CreatePrimUpdateBlock(primShape, flags);
847 outPacket.ObjectData[0].ID = localID;
848 outPacket.ObjectData[0].FullID = objectID;
849 outPacket.ObjectData[0].OwnerID = ownerID;
850 outPacket.ObjectData[0].Text = Helpers.StringToField( text );
851 outPacket.ObjectData[0].ParentID = parentID;
852 outPacket.ObjectData[0].PSBlock = particleSystem;
853 byte[] pb = pos.GetBytes();
854 Array.Copy(pb, 0, outPacket.ObjectData[0].ObjectData, 0, pb.Length);
855
856 OutPacket(outPacket);
857 }
858 /// <summary> 849 /// <summary>
859 /// 850 ///
860 /// </summary> 851 /// </summary>
@@ -876,8 +867,6 @@ namespace OpenSim.Region.ClientStack
876 867
877 #endregion 868 #endregion
878 869
879 #endregion
880
881 #region Helper Methods 870 #region Helper Methods
882 871
883 protected ImprovedTerseObjectUpdatePacket.ObjectDataBlock CreateAvatarImprovedBlock(uint localID, LLVector3 pos, LLVector3 velocity) 872 protected ImprovedTerseObjectUpdatePacket.ObjectDataBlock CreateAvatarImprovedBlock(uint localID, LLVector3 pos, LLVector3 velocity)
@@ -1163,8 +1152,6 @@ namespace OpenSim.Region.ClientStack
1163 objdata.ObjectData[64] = 189; 1152 objdata.ObjectData[64] = 189;
1164 } 1153 }
1165 1154
1166 #endregion
1167
1168 public void SendNameReply(LLUUID profileId, string firstname, string lastname) 1155 public void SendNameReply(LLUUID profileId, string firstname, string lastname)
1169 { 1156 {
1170 UUIDNameReplyPacket packet = new UUIDNameReplyPacket(); 1157 UUIDNameReplyPacket packet = new UUIDNameReplyPacket();
@@ -1177,5 +1164,8 @@ namespace OpenSim.Region.ClientStack
1177 1164
1178 OutPacket( packet ); 1165 OutPacket( packet );
1179 } 1166 }
1167
1168 #endregion
1169
1180 } 1170 }
1181} 1171}