From 7f8d1620437467bcb3c2e2d4e45dc3a925944183 Mon Sep 17 00:00:00 2001 From: John Hurliman Date: Wed, 1 Oct 2008 00:09:20 +0000 Subject: [PATCH] Moved ProfileFlags into the main namespace git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2250 52acb1d6-8a22-11de-b505-999d5b087335 --- OpenMetaverse/Avatar.cs | 34 +++++++++++++++++----------------- OpenMetaverse/AvatarManager.cs | 2 +- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/OpenMetaverse/Avatar.cs b/OpenMetaverse/Avatar.cs index dce43d4f..e440fdd0 100644 --- a/OpenMetaverse/Avatar.cs +++ b/OpenMetaverse/Avatar.cs @@ -32,28 +32,28 @@ using OpenMetaverse.Packets; namespace OpenMetaverse { + #region Enums + + /// + /// Avatar profile flags + /// + [Flags] + public enum ProfileFlags : uint + { + AllowPublish = 1, + MaturePublish = 2, + Identified = 4, + Transacted = 8, + Online = 16 + } + + #endregion Enums + /// /// Represents an avatar (other than your own) /// public class Avatar : Primitive { - #region Enums - - /// - /// Avatar profile flags - /// - [Flags] - public enum ProfileFlags - { - AllowPublish = 1, - MaturePublish = 2, - Identified = 4, - Transacted = 8, - Online = 16 - } - - #endregion Enums - #region Subclasses /// diff --git a/OpenMetaverse/AvatarManager.cs b/OpenMetaverse/AvatarManager.cs index 3c598563..ac91d57b 100644 --- a/OpenMetaverse/AvatarManager.cs +++ b/OpenMetaverse/AvatarManager.cs @@ -438,7 +438,7 @@ namespace OpenMetaverse } else { properties.CharterMember = Utils.BytesToString(reply.PropertiesData.CharterMember); } - properties.Flags = (Avatar.ProfileFlags)reply.PropertiesData.Flags; + properties.Flags = (ProfileFlags)reply.PropertiesData.Flags; properties.ProfileURL = Utils.BytesToString(reply.PropertiesData.ProfileURL); OnAvatarProperties(reply.AgentData.AvatarID, properties);