#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] } }