public object Eval(CmdTrigger <RealmServerCmdArgs> trigger, bool replySuccess) { object obj = trigger.EvalNextOrTargetOrUser(); if (!trigger.CheckPossibleContext(obj)) { return(null); } return(Call(trigger, obj, replySuccess)); }
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); }
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)); }
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); }
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); }
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; }