#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.Text; using Arthea.Environment; namespace Arthea.Continents.Areas.Resets { /// <summary> /// Implements a container reset /// </summary> public class ContainerReset : Reset { #region [rgn] Fields (2) private uint container; private uint item; #endregion [rgn] #region [rgn] Properties (2) /// <summary> /// Gets or sets the container. /// </summary> /// <value>The container.</value> public uint Container { get { return container; } set { container = value; } } /// <summary> /// Gets or sets the item. /// </summary> /// <value>The item.</value> public uint Item { get { return item; } set { item = value; } } #endregion [rgn] #region [rgn] Methods (1) // [rgn] Public Methods (1) /// <summary> /// Returns a <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>. /// </summary> /// <returns> /// A <see cref="T:System.String"></see> that represents the current <see cref="T:System.Object"></see>. /// </returns> public override string ToString() { StringBuilder buf = new StringBuilder(base.ToString()); buf.Append(" - Item: ").AppendLine(Lists.ItemIndexes[item].ShortDescr); buf.Append(" - In Container: ").AppendLine(Lists.ItemIndexes[container].ShortDescr); return buf.ToString(); } #endregion [rgn] } }