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