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 void Buy(MallThing thing)
        {
            TaskContext context = new TaskContext(SoftContext.Role);

            /// 任务设置,可用属性为:.Thing .Num .UseLB
            context.Settings.Thing = thing;

            context.Settings.Num = Number;
            context.Settings.UseLB = this._useLB;

            TaskBase task = new BuyThingsTask(context);
            task.Name = "购买商城物品";

            SoftContext.TaskEngine.Start(task);
        }
Exemplo n.º 3
0
 public static string GetBagPageName(MallThing thing)
 {
     return "";
 }
Exemplo n.º 4
0
 public static string GetRepertoryPageName(MallThing thing)
 {
     return "";
 }
Exemplo n.º 5
0
 public static bool MoveThing(MallThing thing)
 {
     return true;
 }