SoloModule.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using pomelo.connector;
  7. using CommonLang.Property;
  8. using pomelo.area;
  9. namespace XmdsBotTest.Runner
  10. {
  11. public class SoloModule : BotRunner.RunnerModule
  12. {
  13. public SoloModule(BotRunner r) : base(r)
  14. {
  15. }
  16. protected internal override void OnGateBindPlayer(BindPlayerResponse e)
  17. {
  18. base.OnGateBindPlayer(e);
  19. }
  20. protected internal override void OnBattleActorReady(CommonAI.ZoneClient.ZoneLayer layer, CommonAI.ZoneClient.ZoneActor actor)
  21. {
  22. layer.AddTimeDelayMS(Config.CheckIntervalMS, (t) =>
  23. {
  24. if (Enable)
  25. {
  26. }
  27. });
  28. layer.AddTimePeriodicMS(Config.CheckIntervalMS, (t) =>
  29. {
  30. if (Enable)
  31. {
  32. }
  33. });
  34. }
  35. [Desc("问道大会配置")]
  36. [Expandable]
  37. public class Config
  38. {
  39. [Desc("问道大会检测间隔")]
  40. public static int CheckIntervalMS = 5000;
  41. public override string ToString()
  42. {
  43. return "问道大会配置";
  44. }
  45. }
  46. }
  47. }