diff options
author | dr scofield (aka dirk husemann) | 2009-10-02 11:10:52 +0200 |
---|---|---|
committer | dr scofield (aka dirk husemann) | 2009-10-02 11:31:30 +0200 |
commit | 2107b67f1b145f7718fdb1450be1a7b8dd1a0bf7 (patch) | |
tree | 74913862b829b7e56994f2c33ca5fe35638baad1 /OpenSim/Region/Framework | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-2107b67f1b145f7718fdb1450be1a7b8dd1a0bf7.zip opensim-SC-2107b67f1b145f7718fdb1450be1a7b8dd1a0bf7.tar.gz opensim-SC-2107b67f1b145f7718fdb1450be1a7b8dd1a0bf7.tar.bz2 opensim-SC-2107b67f1b145f7718fdb1450be1a7b8dd1a0bf7.tar.xz |
- cleaning up LandData/ILandObject capitalization issues
- adding LandDataSerializer to OAR mechanics
Diffstat (limited to 'OpenSim/Region/Framework')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/ILandObject.cs | 72 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 18 | ||||
-rw-r--r-- | OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 12 |
3 files changed, 51 insertions, 51 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/ILandObject.cs b/OpenSim/Region/Framework/Interfaces/ILandObject.cs index a4e90d2..c2b1292 100644 --- a/OpenSim/Region/Framework/Interfaces/ILandObject.cs +++ b/OpenSim/Region/Framework/Interfaces/ILandObject.cs | |||
@@ -37,49 +37,49 @@ namespace OpenSim.Region.Framework.Interfaces | |||
37 | 37 | ||
38 | public interface ILandObject | 38 | public interface ILandObject |
39 | { | 39 | { |
40 | int getParcelMaxPrimCount(ILandObject thisObject); | 40 | int GetParcelMaxPrimCount(ILandObject thisObject); |
41 | int getSimulatorMaxPrimCount(ILandObject thisObject); | 41 | int GetSimulatorMaxPrimCount(ILandObject thisObject); |
42 | 42 | ||
43 | LandData landData { get; set; } | 43 | LandData LandData { get; set; } |
44 | bool[,] landBitmap { get; set; } | 44 | bool[,] LandBitmap { get; set; } |
45 | UUID regionUUID { get; } | 45 | UUID RegionUUID { get; } |
46 | bool containsPoint(int x, int y); | 46 | bool ContainsPoint(int x, int y); |
47 | ILandObject Copy(); | 47 | ILandObject Copy(); |
48 | 48 | ||
49 | void sendLandUpdateToAvatarsOverMe(); | 49 | void SendLandUpdateToAvatarsOverMe(); |
50 | 50 | ||
51 | void sendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client); | 51 | void SendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client); |
52 | void updateLandProperties(LandUpdateArgs args, IClientAPI remote_client); | 52 | void UpdateLandProperties(LandUpdateArgs args, IClientAPI remote_client); |
53 | bool isEitherBannedOrRestricted(UUID avatar); | 53 | bool IsEitherBannedOrRestricted(UUID avatar); |
54 | bool isBannedFromLand(UUID avatar); | 54 | bool IsBannedFromLand(UUID avatar); |
55 | bool isRestrictedFromLand(UUID avatar); | 55 | bool IsRestrictedFromLand(UUID avatar); |
56 | void sendLandUpdateToClient(IClientAPI remote_client); | 56 | void SendLandUpdateToClient(IClientAPI remote_client); |
57 | List<UUID> createAccessListArrayByFlag(AccessList flag); | 57 | List<UUID> CreateAccessListArrayByFlag(AccessList flag); |
58 | void sendAccessList(UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client); | 58 | void SendAccessList(UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client); |
59 | void updateAccessList(uint flags, List<ParcelManager.ParcelAccessEntry> entries, IClientAPI remote_client); | 59 | void UpdateAccessList(uint flags, List<ParcelManager.ParcelAccessEntry> entries, IClientAPI remote_client); |
60 | void updateLandBitmapByteArray(); | 60 | void UpdateLandBitmapByteArray(); |
61 | void setLandBitmapFromByteArray(); | 61 | void SetLandBitmapFromByteArray(); |
62 | bool[,] getLandBitmap(); | 62 | bool[,] GetLandBitmap(); |
63 | void forceUpdateLandInfo(); | 63 | void ForceUpdateLandInfo(); |
64 | void setLandBitmap(bool[,] bitmap); | 64 | void SetLandBitmap(bool[,] bitmap); |
65 | 65 | ||
66 | bool[,] basicFullRegionLandBitmap(); | 66 | bool[,] BasicFullRegionLandBitmap(); |
67 | bool[,] getSquareLandBitmap(int start_x, int start_y, int end_x, int end_y); | 67 | bool[,] GetSquareLandBitmap(int start_x, int start_y, int end_x, int end_y); |
68 | bool[,] modifyLandBitmapSquare(bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value); | 68 | bool[,] ModifyLandBitmapSquare(bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value); |
69 | bool[,] mergeLandBitmaps(bool[,] bitmap_base, bool[,] bitmap_add); | 69 | bool[,] MergeLandBitmaps(bool[,] bitmap_base, bool[,] bitmap_add); |
70 | void sendForceObjectSelect(int local_id, int request_type, List<UUID> returnIDs, IClientAPI remote_client); | 70 | void SendForceObjectSelect(int local_id, int request_type, List<UUID> returnIDs, IClientAPI remote_client); |
71 | void sendLandObjectOwners(IClientAPI remote_client); | 71 | void SendLandObjectOwners(IClientAPI remote_client); |
72 | void returnObject(SceneObjectGroup obj); | 72 | void ReturnObject(SceneObjectGroup obj); |
73 | void returnLandObjects(uint type, UUID[] owners, UUID[] tasks, IClientAPI remote_client); | 73 | void ReturnLandObjects(uint type, UUID[] owners, UUID[] tasks, IClientAPI remote_client); |
74 | void resetLandPrimCounts(); | 74 | void ResetLandPrimCounts(); |
75 | void addPrimToCount(SceneObjectGroup obj); | 75 | void AddPrimToCount(SceneObjectGroup obj); |
76 | void removePrimFromCount(SceneObjectGroup obj); | 76 | void RemovePrimFromCount(SceneObjectGroup obj); |
77 | void updateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area); | 77 | void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area); |
78 | 78 | ||
79 | void deedToGroup(UUID groupID); | 79 | void DeedToGroup(UUID groupID); |
80 | 80 | ||
81 | void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel); | 81 | void SetParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel); |
82 | void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel); | 82 | void SetSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel); |
83 | 83 | ||
84 | /// <summary> | 84 | /// <summary> |
85 | /// Set the media url for this land parcel | 85 | /// Set the media url for this land parcel |
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 05a6f13..606135b 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -3206,9 +3206,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
3206 | ILandObject land = LandChannel.GetLandObject(agent.startpos.X, agent.startpos.Y); | 3206 | ILandObject land = LandChannel.GetLandObject(agent.startpos.X, agent.startpos.Y); |
3207 | if (land != null) | 3207 | if (land != null) |
3208 | { | 3208 | { |
3209 | if (land.landData.LandingType == (byte)1 && land.landData.UserLocation != Vector3.Zero) | 3209 | if (land.LandData.LandingType == (byte)1 && land.LandData.UserLocation != Vector3.Zero) |
3210 | { | 3210 | { |
3211 | agent.startpos = land.landData.UserLocation; | 3211 | agent.startpos = land.LandData.UserLocation; |
3212 | } | 3212 | } |
3213 | } | 3213 | } |
3214 | } | 3214 | } |
@@ -3846,13 +3846,13 @@ namespace OpenSim.Region.Framework.Scenes | |||
3846 | 3846 | ||
3847 | public LandData GetLandData(float x, float y) | 3847 | public LandData GetLandData(float x, float y) |
3848 | { | 3848 | { |
3849 | return LandChannel.GetLandObject(x, y).landData; | 3849 | return LandChannel.GetLandObject(x, y).LandData; |
3850 | } | 3850 | } |
3851 | 3851 | ||
3852 | public LandData GetLandData(uint x, uint y) | 3852 | public LandData GetLandData(uint x, uint y) |
3853 | { | 3853 | { |
3854 | m_log.DebugFormat("[SCENE]: returning land for {0},{1}", x, y); | 3854 | m_log.DebugFormat("[SCENE]: returning land for {0},{1}", x, y); |
3855 | return LandChannel.GetLandObject((int)x, (int)y).landData; | 3855 | return LandChannel.GetLandObject((int)x, (int)y).LandData; |
3856 | } | 3856 | } |
3857 | 3857 | ||
3858 | 3858 | ||
@@ -3880,14 +3880,14 @@ namespace OpenSim.Region.Framework.Scenes | |||
3880 | { | 3880 | { |
3881 | if (parcel != null) | 3881 | if (parcel != null) |
3882 | { | 3882 | { |
3883 | if ((parcel.landData.Flags & (uint)ParcelFlags.AllowOtherScripts) != 0) | 3883 | if ((parcel.LandData.Flags & (uint)ParcelFlags.AllowOtherScripts) != 0) |
3884 | { | 3884 | { |
3885 | return true; | 3885 | return true; |
3886 | } | 3886 | } |
3887 | else if ((parcel.landData.Flags & (uint)ParcelFlags.AllowGroupScripts) != 0) | 3887 | else if ((parcel.LandData.Flags & (uint)ParcelFlags.AllowGroupScripts) != 0) |
3888 | { | 3888 | { |
3889 | if (part.OwnerID == parcel.landData.OwnerID | 3889 | if (part.OwnerID == parcel.LandData.OwnerID |
3890 | || (parcel.landData.IsGroupOwned && part.GroupID == parcel.landData.GroupID) | 3890 | || (parcel.LandData.IsGroupOwned && part.GroupID == parcel.LandData.GroupID) |
3891 | || Permissions.IsGod(part.OwnerID)) | 3891 | || Permissions.IsGod(part.OwnerID)) |
3892 | { | 3892 | { |
3893 | return true; | 3893 | return true; |
@@ -3899,7 +3899,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
3899 | } | 3899 | } |
3900 | else | 3900 | else |
3901 | { | 3901 | { |
3902 | if (part.OwnerID == parcel.landData.OwnerID) | 3902 | if (part.OwnerID == parcel.LandData.OwnerID) |
3903 | { | 3903 | { |
3904 | return true; | 3904 | return true; |
3905 | } | 3905 | } |
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs index 25489d8..6a10618 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | |||
@@ -1320,15 +1320,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
1320 | ILandObject parcel = m_scene.LandChannel.GetLandObject( | 1320 | ILandObject parcel = m_scene.LandChannel.GetLandObject( |
1321 | m_rootPart.GroupPosition.X, m_rootPart.GroupPosition.Y); | 1321 | m_rootPart.GroupPosition.X, m_rootPart.GroupPosition.Y); |
1322 | 1322 | ||
1323 | if (parcel != null && parcel.landData != null && | 1323 | if (parcel != null && parcel.LandData != null && |
1324 | parcel.landData.OtherCleanTime != 0) | 1324 | parcel.LandData.OtherCleanTime != 0) |
1325 | { | 1325 | { |
1326 | if (parcel.landData.OwnerID != OwnerID && | 1326 | if (parcel.LandData.OwnerID != OwnerID && |
1327 | (parcel.landData.GroupID != GroupID || | 1327 | (parcel.LandData.GroupID != GroupID || |
1328 | parcel.landData.GroupID == UUID.Zero)) | 1328 | parcel.LandData.GroupID == UUID.Zero)) |
1329 | { | 1329 | { |
1330 | if ((DateTime.Now - RootPart.Rezzed).TotalMinutes > | 1330 | if ((DateTime.Now - RootPart.Rezzed).TotalMinutes > |
1331 | parcel.landData.OtherCleanTime) | 1331 | parcel.LandData.OtherCleanTime) |
1332 | { | 1332 | { |
1333 | DetachFromBackup(); | 1333 | DetachFromBackup(); |
1334 | m_log.InfoFormat("[SCENE]: Returning object {0} due to parcel auto return", RootPart.UUID.ToString()); | 1334 | m_log.InfoFormat("[SCENE]: Returning object {0} due to parcel auto return", RootPart.UUID.ToString()); |