// ActionMaker Tools Only. void AddCommend(string commend, ActionMaker actionManager) { if (commend.Equals(AnimDelay)) { DicCommand.Add(commend, new Func(actionManager.AnimationDelay)); } else if (commend.Equals(MoveF)) { DicCommand.Add(commend, new Func(actionManager.MoveForward)); } else if (commend.Equals(MoveFM)) { DicCommand.Add(commend, new Func(actionManager.MoveForwardMoment)); } else if (commend.Equals(MoveB)) { DicCommand.Add(commend, new Func(actionManager.MoveBackward)); } else if (commend.Equals(MoveBM)) { DicCommand.Add(commend, new Func(actionManager.MoveBackwardMoment)); } else if (commend.Equals(FadeOut)) { DicCommand.Add(commend, new Func(actionManager.FadeOut)); } }
// ActionMaker Tools Only. #region ActionMaker Tool public void Initialize(ActionMaker actionMaker) { for (int i = 0; i < ClipName.Length; ++i) { AddCommend(ClipName[i], actionMaker); } }
public void OnEnable() { if (PrefabUtility.GetPrefabType(target) == PrefabType.Prefab) { return; } _actionMaker = (ActionMaker)target; }
public Object parse(string str, Accion action) { LanguageData lenguaje = new LanguageData(gramatica); Parser p = new Parser(lenguaje); ParseTree s_tree = p.Parse(str); if (s_tree.Root != null) { ActionMaker act = new ActionMaker(s_tree.Root); act.escribir_arbol(); return act.getEval(action); } return null; }
public Object parse(string str, Accion action) { LanguageData lenguaje = new LanguageData(gramatica); Parser p = new Parser(lenguaje); ParseTree s_tree = p.Parse(str); if (s_tree.Root != null) { ActionMaker act = new ActionMaker(s_tree.Root); return act.getEval(action); } else { MessageBox.Show("fail, go home!"); } return null; }
public Object parse(string str, Accion action) { LanguageData lenguaje = new LanguageData(gramatica); Parser p = new Parser(lenguaje); ParseTree s_tree = p.Parse(str); if (s_tree.Root != null) { ActionMaker act = new ActionMaker(s_tree.Root); return(act.getEval(action)); } else { MessageBox.Show("fail, go home!"); } return(null); }
public Object parse(string str, Accion action) { Parser p = new Parser(lenguaje); s_tree = p.Parse(str); if (s_tree.Root != null) { dispTree(s_tree.Root, 0); ActionMaker act = new ActionMaker(s_tree.Root); return(act.getEval(action)); } else { StringBuilder html = new StringBuilder(); html.AppendLine("<html>"); html.Append("<table>"); html.Append("<tr><th>Columna</th>"); html.Append("<th>Linea</th>"); html.Append("<th>Tipo</th>"); html.Append("<th>Descripcion</th></tr>"); // DataRow filaError; foreach (var err in s_tree.ParserMessages) { // filaError = errores.NewRow(); Console.Out.WriteLine("Columna" + err.Location.Column + " Linea: " + err.Location.Line + " Tipo: " + err.Level + " Descripcion: " + err.Message); html.Append("<tr><td>" + err.Location.Column + "</td>"); html.Append("<td>" + err.Location.Line + "</td>");; html.Append("<td>" + err.Level + "</td>"); html.Append("<td>" + err.Message + "</td></tr>"); } p.RecoverFromError(); return(html.ToString()); } }
public void parse(ParseTree arbol, Accion action) { ActionMaker act = new ActionMaker(arbol.Root); act.getEval(action); //act.getEval(action); }