GM_Goto.cs 756 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
using FLY.Thick.Base.Common;
using FlyADBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FLY.Thick.Base.Server
{
    public class GM_Goto : GM_Base
    {
        /// <summary>
        /// 扫描速度
        /// </summary>
        public UInt32 Velocity { get; set; }


        public GM_Goto()
        {
            GMState = CTRL_STATE.RUNNING;
            Velocity = 5000;
        }
        public override void Start()
        {
            Start(1000);
        }
        public void Start(int pos)
        {
            base.Start();
            if (!IsRunning) return;

            mFlyAD.SetVelocity(Velocity);
            mFlyAD.Runto(pos);

        }
    }
}