From 12f256a1feb2db1ce36c7f7d8f1dce6dc262d13d Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Tue, 21 Nov 2006 20:08:58 +0000 Subject: [PATCH] Moved the permissions enums to Helpers instead of ObjectManager git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@614 52acb1d6-8a22-11de-b505-999d5b087335 --- libsecondlife-cs/Helpers.cs | 30 +++++++++++++++++++++++++++++ libsecondlife-cs/ObjectManager.cs | 32 ++----------------------------- 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/libsecondlife-cs/Helpers.cs b/libsecondlife-cs/Helpers.cs index 37f7a588..af6723ae 100644 --- a/libsecondlife-cs/Helpers.cs +++ b/libsecondlife-cs/Helpers.cs @@ -68,6 +68,36 @@ public class Helpers Debug }; + /// + /// + /// + [Flags] + public enum PermissionWho + { + /// + Group = 4, + /// + Everyone = 8, + /// + NextOwner = 16 + } + + /// + /// + /// + [Flags] + public enum PermissionType + { + /// + Copy = 0x00008000, + /// + Modify = 0x00004000, + /// + Move = 0x00080000, + /// + Transfer = 0x00002000 + } + /// /// Packs to 32-bit unsigned integers in to a 64-bit unsigned integer /// diff --git a/libsecondlife-cs/ObjectManager.cs b/libsecondlife-cs/ObjectManager.cs index b8953ac4..70e7a75c 100644 --- a/libsecondlife-cs/ObjectManager.cs +++ b/libsecondlife-cs/ObjectManager.cs @@ -149,35 +149,6 @@ namespace libsecondlife Tree = 255 } - /// - /// - /// - public enum PermissionWho - { - /// - Group = 4, - /// - Everyone = 8, - /// - NextOwner = 16 - } - - /// - /// - /// - [Flags] - public enum PermissionType - { - /// - Copy = 0x00008000, - /// - Modify = 0x00004000, - /// - Move = 0x00080000, - /// - Transfer = 0x00002000 - } - /// /// /// @@ -583,7 +554,8 @@ namespace libsecondlife Client.Network.SendPacket(objPosPacket, simulator); } - public void SetPermissions(Simulator simulator, List localIDs, PermissionWho who, PermissionType permissions, bool set) + public void SetPermissions(Simulator simulator, List localIDs, Helpers.PermissionWho who, + Helpers.PermissionType permissions, bool set) { ObjectPermissionsPacket packet = new ObjectPermissionsPacket();