示例#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;
		}