예제 #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));
        }
예제 #2
0
        public static object Eval(CmdTrigger <RealmServerCmdArgs> trigger, object target)
        {
            if (!trigger.CheckPossibleContext(target))
            {
                return((object)null);
            }
            string accessName = trigger.Text.NextWord();
            object obj;

            ReflectUtil.Instance.GetPropValue((IRoleGroup)trigger.Args.Role, target, ref accessName, out obj);
            return(obj);
        }
예제 #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));
        }
예제 #4
0
        public static object Eval(CmdTrigger <RealmServerCmdArgs> trigger, object target)
        {
            if (!trigger.CheckPossibleContext(target))
            {
                // TODO: Come up with a more complete solution
                return(null);
            }
            var    propName = trigger.Text.NextWord();
            object val;

            ReflectUtil.Instance.GetPropValue(trigger.Args.Role, target, ref propName, out val);
            return(val);
        }
예제 #5
0
파일: MiscCommands.cs 프로젝트: NVN/WCell
		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);
		}
예제 #6
0
파일: MiscCommands.cs 프로젝트: NVN/WCell
		public static object Eval(CmdTrigger<RealmServerCmdArgs> trigger, object target)
		{
			if (!trigger.CheckPossibleContext(target))
			{
				// TODO: Come up with a more complete solution
				return null;
			}
			var propName = trigger.Text.NextWord();
			object val;

			ReflectUtil.Instance.GetPropValue(trigger.Args.Role, target, ref propName, out val);
			return val;
		}