PlayerConfig.cs

src/Connections/Players/PlayerConfig.cs · 2.0 KB

From the archive Arthea-src-1.0.zip

Download the archive   « Back to the archive contents

#region Arthea License

/***********************************************************************
*  Arthea MUD by R. Jennings (2007)      http://arthea.googlecode.com/ *
*  By using this code you comply with the Artistic and GPLv2 Licenses. *
***********************************************************************/

#endregion

namespace Arthea.Connections.Players
{
    /// <summary>
    /// Implements config flags for a player
    /// </summary>
    public class PlayerConfig : Flag
    {
        #region [rgn] Fields (3)

        /// <summary>
        /// Away from Keyboard flag.
        /// </summary>
        public const ulong AFK = (1UL << 2);

        /// <summary>
        /// Automatically look when no input is entered
        /// </summary>
        public const ulong AutoLook = (1UL << 0);

        /// <summary>
        /// Display color
        /// </summary>
        public const ulong Color = (1UL << 1);

        #endregion [rgn]

        #region [rgn] Constructors (4)

        /// <summary>
        /// Initializes a new instance of the <see cref="PlayerConfig"/> class.
        /// </summary>
        /// <param name="flag">The bit.</param>
        public PlayerConfig(Flag flag)
            : base(flag)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="PlayerConfig"/> class.
        /// </summary>
        /// <param name="value">The value.</param>
        public PlayerConfig(ulong value)
            : base(value)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="PlayerConfig"/> class.
        /// </summary>
        /// <param name="value">The value.</param>
        public PlayerConfig(string value)
            : base(value)
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="PlayerConfig"/> class.
        /// </summary>
        public PlayerConfig()
        {
        }

        #endregion [rgn]
    }
}

Site Stats

Snippets: 1791
Codebases: 571