ScriptCodeList.cs

src/Scripts/ScriptCodeList.cs · 1.2 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

using System.Collections.Generic;

namespace Arthea.Scripts
{
    /// <summary>
    /// Implementation of a script code list.
    /// </summary>
    public class ScriptCodeList : Dictionary<uint, ScriptCode>
    {
        #region [rgn] Methods (2)

        // [rgn] Public Methods (2)

        /// <summary>
        /// Adds the specified code.
        /// </summary>
        /// <param name="code">The code.</param>
        public void Add(ScriptCode code)
        {
            Add(code.Id, code);
        }

        /// <summary>
        /// Removes the specified code.
        /// </summary>
        /// <param name="code">The code.</param>
        /// <returns>true if successful</returns>
        public bool Remove(ScriptCode code)
        {
            return Remove(code.Id);
        }

        #endregion [rgn]
    }
}

Site Stats

Snippets: 1791
Codebases: 571