opensim-development – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | eva | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ |
||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
||
4 | * |
||
5 | * Redistribution and use in source and binary forms, with or without |
||
6 | * modification, are permitted provided that the following conditions are met: |
||
7 | * * Redistributions of source code must retain the above copyright |
||
8 | * notice, this list of conditions and the following disclaimer. |
||
9 | * * Redistributions in binary form must reproduce the above copyright |
||
10 | * notice, this list of conditions and the following disclaimer in the |
||
11 | * documentation and/or other materials provided with the distribution. |
||
12 | * * Neither the name of the OpenSimulator Project nor the |
||
13 | * names of its contributors may be used to endorse or promote products |
||
14 | * derived from this software without specific prior written permission. |
||
15 | * |
||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY |
||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY |
||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
26 | */ |
||
27 | |||
28 | using System.Collections.Generic; |
||
29 | using OpenMetaverse; |
||
30 | |||
31 | namespace OpenSim.Framework |
||
32 | { |
||
33 | public delegate int overrideParcelMaxPrimCountDelegate(ILandObject obj); |
||
34 | public delegate int overrideSimulatorMaxPrimCountDelegate(ILandObject obj); |
||
35 | |||
36 | public interface ILandObject |
||
37 | { |
||
38 | int GetParcelMaxPrimCount(); |
||
39 | int GetSimulatorMaxPrimCount(); |
||
40 | int GetPrimsFree(); |
||
41 | |||
42 | LandData LandData { get; set; } |
||
43 | bool[,] LandBitmap { get; set; } |
||
44 | UUID RegionUUID { get; } |
||
45 | |||
46 | /// <summary> |
||
47 | /// Prim counts for this land object. |
||
48 | /// </summary> |
||
49 | IPrimCounts PrimCounts { get; set; } |
||
50 | |||
51 | /// <summary> |
||
52 | /// The start point for the land object. This is the western-most point as one scans land working from |
||
53 | /// north to south. |
||
54 | /// </summary> |
||
55 | Vector3 StartPoint { get; } |
||
56 | |||
57 | /// <summary> |
||
58 | /// The end point for the land object. This is the eastern-most point as one scans land working from |
||
59 | /// south to north. |
||
60 | /// </summary> |
||
61 | Vector3 EndPoint { get; } |
||
62 | |||
63 | bool ContainsPoint(int x, int y); |
||
64 | |||
65 | ILandObject Copy(); |
||
66 | |||
67 | void SendLandUpdateToAvatarsOverMe(); |
||
68 | |||
69 | void SendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client); |
||
70 | void UpdateLandProperties(LandUpdateArgs args, IClientAPI remote_client); |
||
71 | bool IsEitherBannedOrRestricted(UUID avatar); |
||
72 | bool IsBannedFromLand(UUID avatar); |
||
73 | bool CanBeOnThisLand(UUID avatar, float posHeight); |
||
74 | bool IsRestrictedFromLand(UUID avatar); |
||
75 | bool IsInLandAccessList(UUID avatar); |
||
76 | void SendLandUpdateToClient(IClientAPI remote_client); |
||
77 | void SendLandUpdateToClient(bool snap_selection, IClientAPI remote_client); |
||
78 | List<LandAccessEntry> CreateAccessListArrayByFlag(AccessList flag); |
||
79 | void SendAccessList(UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client); |
||
80 | void UpdateAccessList(uint flags, UUID transactionID, int sequenceID, int sections, List<LandAccessEntry> entries, IClientAPI remote_client); |
||
81 | void UpdateLandBitmapByteArray(); |
||
82 | void SetLandBitmapFromByteArray(); |
||
83 | bool[,] GetLandBitmap(); |
||
84 | void ForceUpdateLandInfo(); |
||
85 | void SetLandBitmap(bool[,] bitmap); |
||
86 | |||
87 | /// <summary> |
||
88 | /// Get a land bitmap that would cover an entire region. |
||
89 | /// </summary> |
||
90 | /// <returns>The bitmap created.</returns> |
||
91 | bool[,] BasicFullRegionLandBitmap(); |
||
92 | |||
93 | /// <summary> |
||
94 | /// Create a square land bitmap. |
||
95 | /// </summary> |
||
96 | /// <remarks> |
||
97 | /// Land co-ordinates are zero indexed. The inputs are treated as points. So if you want to create a bitmap |
||
98 | /// that covers an entire 256 x 256m region apart from a strip of land on the east, then you would need to |
||
99 | /// specify start_x = 0, start_y = 0, end_x = 252 (or anything up to 255), end_y = 256. |
||
100 | /// |
||
101 | /// At the moment, the smallest parcel of land is 4m x 4m, so if the |
||
102 | /// region is 256 x 256m (the SL size), the bitmap returned will start at (0,0) and end at (63,63). |
||
103 | /// </remarks> |
||
104 | /// <param name="start_x"></param> |
||
105 | /// <param name="start_y"></param> |
||
106 | /// <param name="end_x"></param> |
||
107 | /// <param name="end_y"></param> |
||
108 | /// <returns>The bitmap created.</returns> |
||
109 | bool[,] GetSquareLandBitmap(int start_x, int start_y, int end_x, int end_y); |
||
110 | |||
111 | bool[,] ModifyLandBitmapSquare(bool[,] land_bitmap, int start_x, int start_y, int end_x, int end_y, bool set_value); |
||
112 | bool[,] MergeLandBitmaps(bool[,] bitmap_base, bool[,] bitmap_add); |
||
113 | void SendForceObjectSelect(int local_id, int request_type, List<UUID> returnIDs, IClientAPI remote_client); |
||
114 | void SendLandObjectOwners(IClientAPI remote_client); |
||
115 | void ReturnLandObjects(uint type, UUID[] owners, UUID[] tasks, IClientAPI remote_client); |
||
116 | void ResetOverMeRecord(); |
||
117 | void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area); |
||
118 | |||
119 | void DeedToGroup(UUID groupID); |
||
120 | |||
121 | void SetParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel); |
||
122 | void SetSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel); |
||
123 | |||
124 | /// <summary> |
||
125 | /// Set the media url for this land parcel |
||
126 | /// </summary> |
||
127 | /// <param name="url"></param> |
||
128 | void SetMediaUrl(string url); |
||
129 | |||
130 | /// <summary> |
||
131 | /// Set the music url for this land parcel |
||
132 | /// </summary> |
||
133 | /// <param name="url"></param> |
||
134 | void SetMusicUrl(string url); |
||
135 | |||
136 | /// <summary> |
||
137 | /// Get the music url for this land parcel |
||
138 | /// </summary> |
||
139 | /// <returns>The music url.</returns> |
||
140 | string GetMusicUrl(); |
||
141 | } |
||
142 | } |