123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- 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 AttendanceWarn : BotRunner.RunnerModule
- {
- public AttendanceWarn() {
- module_name = "签到";
- }
- public AttendanceWarn(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)
- {
- getAttendanceInfoRequest();
- }
- });
- }
- private void getAttendanceInfoRequest()
- {
- client.GameSocket.attendanceHandler.getAttendanceInfoRequest(
- (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<AttendanceWarn.Config>.Show("修改配置", this);
- }
- }
- }
- }
|