public BuyThingsTask(TaskContext context) : base(context) { Logger.Debug("1"); _thing = context.Settings.Thing; _num = context.Settings.Num; _useLB = context.Settings.UseLB; Logger.Debug("2"); }
private async void Buy(MallThing thing) { TaskContext context = new TaskContext(SoftContext.Role); /// 任务设置,可用属性为:.Thing .Num .UseLB context.Settings.Thing = thing; context.Settings.Num = this._number; context.Settings.UseLB = this._useLB; TaskBase task = new BuyThingsTask(context); task.Name = "购买商城物品"; if (this._number <= 0) { await SoftContext.MainWindow.ShowMessageAsync("购买失败", "请检查物品数量!"); return; } SoftContext.TaskEngine.Start(task); }
public static bool FindMallButtonAndClick(this IRole role, MallThing thing) { DmPlugin dm = role.Window.Dm; return(dm.FindPicE_LeftClick(0, 0, role.Window.Width, role.Window.Height, thing.Name + ".bmp", 35, 85)? true : false); }
public static bool MoveThing(MallThing thing) { return(true); }
public static string GetRepertoryPageName(MallThing thing) { return(""); }
public static string GetBagPageName(MallThing thing) { return(""); }