AreaUpdateAction.cs

src/Updates/AreaUpdateAction.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;
using Arthea.Environment;

namespace Arthea.Updates
{
    /// <summary>
    /// Implementation of area update action. 
    /// </summary>
    public class AreaUpdateAction : TimerAction
    {
        #region [rgn] Constructors (1)

        /// <summary>
        /// Initializes a new instance of the <see cref="AreaUpdateAction"/> class.
        /// </summary>
        public AreaUpdateAction()
        {
            interval = UpdateManager.PulseArea;
            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.Areas.Update();
        }

        #endregion [rgn]
    }
}

Site Stats

Snippets: 1791
Codebases: 571