aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-11-28 17:18:10 +0000
committerJustin Clarke Casey2008-11-28 17:18:10 +0000
commitdf9b0e9e1131cd3fd9b0361d4d75c7242e04d848 (patch)
tree1acbd9fa0ddfaf0784c82651bc4693377d33a0df /OpenSim/Framework
parent* minor: remove unused JId class (diff)
downloadopensim-SC-df9b0e9e1131cd3fd9b0361d4d75c7242e04d848.zip
opensim-SC-df9b0e9e1131cd3fd9b0361d4d75c7242e04d848.tar.gz
opensim-SC-df9b0e9e1131cd3fd9b0361d4d75c7242e04d848.tar.bz2
opensim-SC-df9b0e9e1131cd3fd9b0361d4d75c7242e04d848.tar.xz
* refactor: Replace derez destiation magic numbers with an enumeration
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r--OpenSim/Framework/IClientAPI.cs5
-rw-r--r--OpenSim/Framework/IScene.cs14
2 files changed, 15 insertions, 4 deletions
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs
index 88cb49e..e0a97a8 100644
--- a/OpenSim/Framework/IClientAPI.cs
+++ b/OpenSim/Framework/IClientAPI.cs
@@ -20,7 +20,7 @@
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 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 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 23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORTOn
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 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. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
@@ -33,7 +33,6 @@ using OpenMetaverse.Packets;
33 33
34namespace OpenSim.Framework 34namespace OpenSim.Framework
35{ 35{
36
37 #region Client API Delegate definitions 36 #region Client API Delegate definitions
38 37
39 public delegate void ViewerEffectEventHandler(IClientAPI sender, List<ViewerEffectEventHandlerArg> args); 38 public delegate void ViewerEffectEventHandler(IClientAPI sender, List<ViewerEffectEventHandlerArg> args);
@@ -98,7 +97,7 @@ namespace OpenSim.Framework
98 public delegate void GenericCall4(Packet packet, IClientAPI remoteClient); 97 public delegate void GenericCall4(Packet packet, IClientAPI remoteClient);
99 98
100 public delegate void DeRezObject( 99 public delegate void DeRezObject(
101 IClientAPI remoteClient, uint localID, UUID groupID, byte destination, UUID destinationID); 100 IClientAPI remoteClient, uint localID, UUID groupID, DeRezAction action, UUID destinationID);
102 101
103 public delegate void GenericCall5(IClientAPI remoteClient, bool status); 102 public delegate void GenericCall5(IClientAPI remoteClient, bool status);
104 103
diff --git a/OpenSim/Framework/IScene.cs b/OpenSim/Framework/IScene.cs
index b6bd45a..a852eaf 100644
--- a/OpenSim/Framework/IScene.cs
+++ b/OpenSim/Framework/IScene.cs
@@ -40,7 +40,19 @@ namespace OpenSim.Framework
40 Crashed = 2, 40 Crashed = 2,
41 Starting = 3, 41 Starting = 3,
42 SlaveScene = 4 42 SlaveScene = 4
43 } ; 43 };
44
45 /// <value>
46 /// Indicate what action to take on an object derez request
47 /// </value>
48 public enum DeRezAction : byte
49 {
50 TakeCopy = 1,
51 Take = 4,
52 GodTakeCopy = 5,
53 Delete = 6,
54 Return = 9
55 };
44 56
45 public interface IScene 57 public interface IScene
46 { 58 {