Exemplo n.º 1
0
 public BuyThingsTask(TaskContext context)
     : base(context)
 {
     Logger.Debug("1");
     _thing = context.Settings.Thing;
     _num   = context.Settings.Num;
     _useLB = context.Settings.UseLB;
     Logger.Debug("2");
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public static bool MoveThing(MallThing thing)
 {
     return(true);
 }
Exemplo n.º 5
0
 public static string GetRepertoryPageName(MallThing thing)
 {
     return("");
 }
Exemplo n.º 6
0
 public static string GetBagPageName(MallThing thing)
 {
     return("");
 }