using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using pomelo.connector;
using CommonLang.Property;
using pomelo.area;

namespace XmdsBotTest.Runner
{
    public class SoloModule : BotRunner.RunnerModule
    {
        
        public SoloModule(BotRunner r) : base(r)
        {
           
        }
        protected internal override void OnGateBindPlayer(BindPlayerResponse e)
        {
            base.OnGateBindPlayer(e);
        }
        protected internal override void OnBattleActorReady(CommonAI.ZoneClient.ZoneLayer layer, CommonAI.ZoneClient.ZoneActor actor)
        {
            layer.AddTimeDelayMS(Config.CheckIntervalMS, (t) =>
            {
                if (Enable)
                {

                }
            });
            layer.AddTimePeriodicMS(Config.CheckIntervalMS, (t) =>
            {
                if (Enable)
                {
                   
                }
            });
        }
       
        [Desc("问道大会配置")]
        [Expandable]
        public class Config
        {
            [Desc("问道大会检测间隔")]
            public static int CheckIntervalMS = 5000;

            public override string ToString()
            {
                return "问道大会配置";
            }
        }
    }
}