1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- 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 MasterTaskFunc : BotRunner.RunnerModule
- {
- public MasterTaskFunc() {
- module_name = "师门任务";
- }
- public MasterTaskFunc(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)
- {
- //joinSoloRequest();
- }
- });
- }
- private void joinSoloRequest()
- {
- // client.GameSocket.soloHandler.joinSoloRequest(
- // (err, rsp) =>
- // { });
- }
- [Desc("师门任务配置")]
- [Expandable]
- public class Config : ConfigBase
- {
- [Desc("师门任务检测间隔")]
- public static int CheckIntervalMS = 5000;
- public override string ToString()
- {
- return "师门任务配置";
- }
- public override void popG2DPropertyDialog()
- {
- CommonFroms.G2D.G2DPropertyDialog<MasterTaskFunc.Config>.Show("修改配置", this);
- }
- }
- }
- }
|