예제 #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");
 }
예제 #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);
        }
예제 #3
0
 public static string GetBagPageName(MallThing thing)
 {
     return "";
 }
예제 #4
0
 public static string GetRepertoryPageName(MallThing thing)
 {
     return "";
 }
예제 #5
0
 public static bool MoveThing(MallThing thing)
 {
     return true;
 }