diff options
author | Teravus Ovares | 2008-09-06 22:28:51 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-09-06 22:28:51 +0000 |
commit | 3378b502c5c02de2cc0d9d73bd24aecafa5dd3fe (patch) | |
tree | 78f306a05c126927d06936cd87ef9e6e0a1cdaf7 /OpenSim/Region | |
parent | Mantis#1234. Thank you HomerHorwitz for a patch that: (diff) | |
download | opensim-SC-3378b502c5c02de2cc0d9d73bd24aecafa5dd3fe.zip opensim-SC-3378b502c5c02de2cc0d9d73bd24aecafa5dd3fe.tar.gz opensim-SC-3378b502c5c02de2cc0d9d73bd24aecafa5dd3fe.tar.bz2 opensim-SC-3378b502c5c02de2cc0d9d73bd24aecafa5dd3fe.tar.xz |
* This changes gridcomms types back to our home grown wholy controlled types.
* These are different types then the OMV types because changing them causes just about all grid comms to break. If these were the libOMV types, then libOMV couldn't change them ever again after that.. or we'd have a breakage whenever they changed them.
* This might introduce a map issue. Still checking it out.
Diffstat (limited to 'OpenSim/Region')
4 files changed, 22 insertions, 22 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 1dd4219..a3bcc26 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | |||
@@ -1212,7 +1212,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1212 | if (remObject != null) | 1212 | if (remObject != null) |
1213 | { | 1213 | { |
1214 | retValue = | 1214 | retValue = |
1215 | remObject.ExpectAvatarCrossing(regionHandle, agentID.Guid, position, | 1215 | remObject.ExpectAvatarCrossing(regionHandle, agentID.Guid, new sLLVector3(position), |
1216 | isFlying); | 1216 | isFlying); |
1217 | } | 1217 | } |
1218 | else | 1218 | else |
@@ -1269,7 +1269,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1269 | if (remObject != null) | 1269 | if (remObject != null) |
1270 | { | 1270 | { |
1271 | retValue = | 1271 | retValue = |
1272 | remObject.ExpectAvatarCrossing(regionHandle, agentID.Guid, position, | 1272 | remObject.ExpectAvatarCrossing(regionHandle, agentID.Guid, new sLLVector3(position), |
1273 | isPhysical); | 1273 | isPhysical); |
1274 | } | 1274 | } |
1275 | else | 1275 | else |
@@ -1739,7 +1739,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
1739 | if (landData != null) | 1739 | if (landData != null) |
1740 | { | 1740 | { |
1741 | // for now, only push out the data we need for answering a ParcelInfoReqeust | 1741 | // for now, only push out the data we need for answering a ParcelInfoReqeust |
1742 | // FIXME: these Replace calls are necessary as Vector3.Parse can't parse vectors with spaces in them. Can be removed as soon as we switch to a newer version | 1742 | // FIXME: these Replace calls are necessary as LLVector3.Parse can't parse vectors with spaces in them. Can be removed as soon as we switch to a newer version |
1743 | hash["AABBMax"] = landData.AABBMax.ToString().Replace(" ", ""); | 1743 | hash["AABBMax"] = landData.AABBMax.ToString().Replace(" ", ""); |
1744 | hash["AABBMin"] = landData.AABBMin.ToString().Replace(" ", ""); | 1744 | hash["AABBMin"] = landData.AABBMin.ToString().Replace(" ", ""); |
1745 | hash["Area"] = landData.Area.ToString(); | 1745 | hash["Area"] = landData.Area.ToString(); |
diff --git a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs index 1f0c067..0195a58 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs | |||
@@ -202,13 +202,13 @@ namespace OpenSim.Region.Communications.OGS1 | |||
202 | } | 202 | } |
203 | 203 | ||
204 | 204 | ||
205 | public bool ExpectAvatarCrossing(ulong regionHandle, Guid agentID, Vector3 position, bool isFlying) | 205 | public bool ExpectAvatarCrossing(ulong regionHandle, Guid agentID, sLLVector3 position, bool isFlying) |
206 | { | 206 | { |
207 | try | 207 | try |
208 | { | 208 | { |
209 | return | 209 | return |
210 | InterRegionSingleton.Instance.ExpectAvatarCrossing(regionHandle, new UUID(agentID), | 210 | InterRegionSingleton.Instance.ExpectAvatarCrossing(regionHandle, new UUID(agentID), |
211 | position, | 211 | new Vector3(position.x, position.y, position.z), |
212 | isFlying); | 212 | isFlying); |
213 | } | 213 | } |
214 | catch (RemotingException e) | 214 | catch (RemotingException e) |
@@ -218,13 +218,13 @@ namespace OpenSim.Region.Communications.OGS1 | |||
218 | } | 218 | } |
219 | } | 219 | } |
220 | 220 | ||
221 | public bool InformRegionPrim(ulong regionHandle, Guid SceneObjectGroupID, Vector3 position, bool isPhysical) | 221 | public bool InformRegionPrim(ulong regionHandle, Guid SceneObjectGroupID, sLLVector3 position, bool isPhysical) |
222 | { | 222 | { |
223 | try | 223 | try |
224 | { | 224 | { |
225 | return | 225 | return |
226 | InterRegionSingleton.Instance.InformRegionPrim(regionHandle, new UUID(SceneObjectGroupID), | 226 | InterRegionSingleton.Instance.InformRegionPrim(regionHandle, new UUID(SceneObjectGroupID), |
227 | position, | 227 | new Vector3(position.x, position.y, position.z), |
228 | isPhysical); | 228 | isPhysical); |
229 | } | 229 | } |
230 | catch (RemotingException e) | 230 | catch (RemotingException e) |
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index 317be13..36a82a8 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | |||
@@ -242,8 +242,8 @@ namespace OpenSim.Region.Communications.OGS1 | |||
242 | public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz) | 242 | public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz) |
243 | { | 243 | { |
244 | Hashtable param = new Hashtable(); | 244 | Hashtable param = new Hashtable(); |
245 | param["avatar_uuid"] = userid.ToString(); | 245 | param["avatar_uuid"] = userid.Guid.ToString(); |
246 | param["region_uuid"] = regionid.ToString(); | 246 | param["region_uuid"] = regionid.Guid.ToString(); |
247 | param["region_handle"] = regionhandle.ToString(); | 247 | param["region_handle"] = regionhandle.ToString(); |
248 | param["region_pos_x"] = posx.ToString(); | 248 | param["region_pos_x"] = posx.ToString(); |
249 | param["region_pos_y"] = posy.ToString(); | 249 | param["region_pos_y"] = posy.ToString(); |
@@ -528,8 +528,8 @@ namespace OpenSim.Region.Communications.OGS1 | |||
528 | try | 528 | try |
529 | { | 529 | { |
530 | Hashtable param = new Hashtable(); | 530 | Hashtable param = new Hashtable(); |
531 | param["ownerID"] = friendlistowner.ToString(); | 531 | param["ownerID"] = friendlistowner.Guid.ToString(); |
532 | param["friendID"] = friend.ToString(); | 532 | param["friendID"] = friend.Guid.ToString(); |
533 | param["friendPerms"] = perms.ToString(); | 533 | param["friendPerms"] = perms.ToString(); |
534 | IList parameters = new ArrayList(); | 534 | IList parameters = new ArrayList(); |
535 | parameters.Add(param); | 535 | parameters.Add(param); |
@@ -580,8 +580,8 @@ namespace OpenSim.Region.Communications.OGS1 | |||
580 | try | 580 | try |
581 | { | 581 | { |
582 | Hashtable param = new Hashtable(); | 582 | Hashtable param = new Hashtable(); |
583 | param["ownerID"] = friendlistowner.ToString(); | 583 | param["ownerID"] = friendlistowner.Guid.ToString(); |
584 | param["friendID"] = friend.ToString(); | 584 | param["friendID"] = friend.Guid.ToString(); |
585 | 585 | ||
586 | IList parameters = new ArrayList(); | 586 | IList parameters = new ArrayList(); |
587 | parameters.Add(param); | 587 | parameters.Add(param); |
@@ -632,8 +632,8 @@ namespace OpenSim.Region.Communications.OGS1 | |||
632 | try | 632 | try |
633 | { | 633 | { |
634 | Hashtable param = new Hashtable(); | 634 | Hashtable param = new Hashtable(); |
635 | param["ownerID"] = friendlistowner.ToString(); | 635 | param["ownerID"] = friendlistowner.Guid.ToString(); |
636 | param["friendID"] = friend.ToString(); | 636 | param["friendID"] = friend.Guid.ToString(); |
637 | param["friendPerms"] = perms.ToString(); | 637 | param["friendPerms"] = perms.ToString(); |
638 | IList parameters = new ArrayList(); | 638 | IList parameters = new ArrayList(); |
639 | parameters.Add(param); | 639 | parameters.Add(param); |
@@ -672,7 +672,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
672 | } | 672 | } |
673 | } | 673 | } |
674 | /// <summary> | 674 | /// <summary> |
675 | /// Returns a list of FriendsListItems that describe the friends and permissions in the friend relationship for UUID friendslistowner | 675 | /// Returns a list of FriendsListItems that describe the friends and permissions in the friend relationship for LLUUID friendslistowner |
676 | /// </summary> | 676 | /// </summary> |
677 | /// <param name="friendlistowner">The agent that we're retreiving the friends Data.</param> | 677 | /// <param name="friendlistowner">The agent that we're retreiving the friends Data.</param> |
678 | public List<FriendListItem> GetUserFriendList(UUID friendlistowner) | 678 | public List<FriendListItem> GetUserFriendList(UUID friendlistowner) |
@@ -682,7 +682,7 @@ namespace OpenSim.Region.Communications.OGS1 | |||
682 | try | 682 | try |
683 | { | 683 | { |
684 | Hashtable param = new Hashtable(); | 684 | Hashtable param = new Hashtable(); |
685 | param["ownerID"] = friendlistowner.ToString(); | 685 | param["ownerID"] = friendlistowner.Guid.ToString(); |
686 | 686 | ||
687 | IList parameters = new ArrayList(); | 687 | IList parameters = new ArrayList(); |
688 | parameters.Add(param); | 688 | parameters.Add(param); |
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index e51f1be..1a4b0c9 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -1862,12 +1862,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
1862 | cadu.AgentID = UUID.Guid; | 1862 | cadu.AgentID = UUID.Guid; |
1863 | cadu.alwaysrun = m_setAlwaysRun; | 1863 | cadu.alwaysrun = m_setAlwaysRun; |
1864 | cadu.AVHeight = m_avHeight; | 1864 | cadu.AVHeight = m_avHeight; |
1865 | Vector3 tempCameraCenter = new Vector3(m_CameraCenter.X, m_CameraCenter.Y, m_CameraCenter.Z); | 1865 | sLLVector3 tempCameraCenter = new sLLVector3(new Vector3(m_CameraCenter.X, m_CameraCenter.Y, m_CameraCenter.Z)); |
1866 | cadu.cameraPosition = tempCameraCenter; | 1866 | cadu.cameraPosition = tempCameraCenter; |
1867 | cadu.drawdistance = m_DrawDistance; | 1867 | cadu.drawdistance = m_DrawDistance; |
1868 | cadu.godlevel = m_godlevel; | 1868 | cadu.godlevel = m_godlevel; |
1869 | cadu.GroupAccess = 0; | 1869 | cadu.GroupAccess = 0; |
1870 | cadu.Position = AbsolutePosition; | 1870 | cadu.Position = new sLLVector3(AbsolutePosition); |
1871 | cadu.regionHandle = m_scene.RegionInfo.RegionHandle; | 1871 | cadu.regionHandle = m_scene.RegionInfo.RegionHandle; |
1872 | float multiplier = 1; | 1872 | float multiplier = 1; |
1873 | int innacurateNeighbors = m_scene.GetInaccurateNeighborCount(); | 1873 | int innacurateNeighbors = m_scene.GetInaccurateNeighborCount(); |
@@ -1887,7 +1887,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1887 | 1887 | ||
1888 | 1888 | ||
1889 | 1889 | ||
1890 | cadu.Velocity = Velocity; | 1890 | cadu.Velocity = new sLLVector3(Velocity); |
1891 | m_scene.SendOutChildAgentUpdates(cadu,this); | 1891 | m_scene.SendOutChildAgentUpdates(cadu,this); |
1892 | m_LastChildAgentUpdatePosition.X = AbsolutePosition.X; | 1892 | m_LastChildAgentUpdatePosition.X = AbsolutePosition.X; |
1893 | m_LastChildAgentUpdatePosition.Y = AbsolutePosition.Y; | 1893 | m_LastChildAgentUpdatePosition.Y = AbsolutePosition.Y; |
@@ -2070,11 +2070,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
2070 | int shifty = ((int)rRegionY - (int)tRegionY) * (int)Constants.RegionSize; | 2070 | int shifty = ((int)rRegionY - (int)tRegionY) * (int)Constants.RegionSize; |
2071 | 2071 | ||
2072 | m_DrawDistance = cAgentData.drawdistance; | 2072 | m_DrawDistance = cAgentData.drawdistance; |
2073 | m_pos = new Vector3(cAgentData.Position.X + shiftx, cAgentData.Position.Y + shifty, cAgentData.Position.Z); | 2073 | m_pos = new Vector3(cAgentData.Position.x + shiftx, cAgentData.Position.y + shifty, cAgentData.Position.z); |
2074 | 2074 | ||
2075 | // It's hard to say here.. We can't really tell where the camera position is unless it's in world cordinates from the sending region | 2075 | // It's hard to say here.. We can't really tell where the camera position is unless it's in world cordinates from the sending region |
2076 | m_CameraCenter = | 2076 | m_CameraCenter = |
2077 | new Vector3(cAgentData.cameraPosition.X, cAgentData.cameraPosition.Y, cAgentData.cameraPosition.Z); | 2077 | new Vector3(cAgentData.cameraPosition.x, cAgentData.cameraPosition.y, cAgentData.cameraPosition.z); |
2078 | 2078 | ||
2079 | 2079 | ||
2080 | m_godlevel = cAgentData.godlevel; | 2080 | m_godlevel = cAgentData.godlevel; |