Esempio n. 1
0
        public object Eval(CmdTrigger <RealmServerCmdArgs> trigger, bool replySuccess)
        {
            object obj = trigger.EvalNextOrTargetOrUser();

            if (!trigger.CheckPossibleContext(obj))
            {
                return(null);
            }
            return(Call(trigger, obj, replySuccess));
        }
Esempio n. 2
0
        public override void Process(CmdTrigger <RealmServerCmdArgs> trigger)
        {
            object obj = trigger.EvalNextOrTargetOrUser();

            if (obj is IContextHandler)
            {
                ((IContextHandler)obj).ExecuteInContext(() => ModProp(trigger, obj));
            }
            else
            {
                ModProp(trigger, obj);
            }
        }
Esempio n. 3
0
        public object Eval(CmdTrigger <RealmServerCmdArgs> trigger, bool replySuccess)
        {
            var obj = trigger.EvalNextOrTargetOrUser();

            if (!trigger.CheckPossibleContext(obj))
            {
                // TODO: Come up with a more complete solution
                //((IContextHandler)obj).ExecuteInContext(() => Call(trigger, obj, replySuccess));
                return(null);
            }

            return(Call(trigger, obj, replySuccess));
        }
Esempio n. 4
0
        public override void Process(CmdTrigger <RealmServerCmdArgs> trigger)
        {
            var obj = trigger.EvalNextOrTargetOrUser();

            if (obj is IContextHandler)
            {
                ((IContextHandler)obj).ExecuteInContext(() => Call(trigger, obj, true));
            }
            else
            {
                Call(trigger, obj, true);
            }
        }
Esempio n. 5
0
        public override void Process(CmdTrigger <RealmServerCmdArgs> trigger)
        {
            object obj = trigger.EvalNextOrTargetOrUser();

            if (obj is IContextHandler)
            {
                ((IContextHandler)obj).ExecuteInContext((Action)(() => GetCommand.GetAndReply(trigger, obj)));
            }
            else
            {
                GetCommand.GetAndReply(trigger, obj);
            }
        }
Esempio n. 6
0
		public override void Process(CmdTrigger<RealmServerCmdArgs> trigger)
		{
			Set(trigger, trigger.EvalNextOrTargetOrUser());
		}
Esempio n. 7
0
		public object Eval(CmdTrigger<RealmServerCmdArgs> trigger, bool replySuccess)
		{
			var obj = trigger.EvalNextOrTargetOrUser();
			if (!trigger.CheckPossibleContext(obj))
			{
				// TODO: Come up with a more complete solution
				//((IContextHandler)obj).ExecuteInContext(() => Call(trigger, obj, replySuccess));
				return null;
			}

			return Call(trigger, obj, replySuccess);
		}
Esempio n. 8
0
		public override void Process(CmdTrigger<RealmServerCmdArgs> trigger)
		{
			var obj = trigger.EvalNextOrTargetOrUser();
			if (obj is IContextHandler)
			{
				((IContextHandler)obj).ExecuteInContext(() => Call(trigger, obj, true));
			}
			else
			{
				Call(trigger, obj, true);
			}
		}
Esempio n. 9
0
		public override object Eval(CmdTrigger<RealmServerCmdArgs> trigger)
		{
			return Eval(trigger, trigger.EvalNextOrTargetOrUser());
		}
Esempio n. 10
0
 public override void Process(CmdTrigger <RealmServerCmdArgs> trigger)
 {
     Set(trigger, trigger.EvalNextOrTargetOrUser());
 }
Esempio n. 11
0
 public override object Eval(CmdTrigger <RealmServerCmdArgs> trigger)
 {
     return(Eval(trigger, trigger.EvalNextOrTargetOrUser()));
 }