예제 #1
0
 // 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));
     }
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }
예제 #4
0
 // 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));
 }