// context.GetActionLibrary(1).DefineAction(100, normal, false, "action_xx", null, {expr, menu, object}); public void DefineAction(int actionid, ActionKind kind, ActionExecutionType execution, bool question, string func, string code, ActionArgumentType[] args) { if (!Actions.ContainsKey(actionid)) { Actions.Add(actionid, new ActionDefinition(kind, execution, question, func, code, args)); } }
public ActionDefinition(ActionKind kind, ActionExecutionType exec, bool question, string funcname, string code, ActionArgumentType[] args) { Kind = kind; ExecutionType = exec; IsQuestion = question; FunctionName = funcname; Code = code; Arguments = args; }
// context.GetActionLibrary(1).DefineAction(100, normal, false, "action_xx", null, {expr, menu, object}); public void DefineAction(int actionid, ActionKind kind, ActionExecutionType execution, bool question, string func, string code, ActionArgumentType[] args) { if (!Actions.ContainsKey(actionid)) Actions.Add(actionid, new ActionDefinition(kind, execution, question, func, code, args)); }