#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; using Arthea.Environment; namespace Arthea.Updates { /// <summary> /// Implementation of items update action. /// </summary> public class ItemsUpdateAction : TimerAction { #region [rgn] Constructors (1) /// <summary> /// Initializes a new instance of the <see cref="ItemsUpdateAction"/> class. /// </summary> public ItemsUpdateAction() { interval = UpdateManager.PulseItems; time = DateTime.Now.TimeOfDay.TotalMilliseconds + interval; } #endregion [rgn] #region [rgn] Methods (1) // [rgn] Public Methods (1) /// <summary> /// Executes this instance. /// </summary> public override void Execute() { base.Execute(); Lists.Items.Update(); } #endregion [rgn] } }