static public List <string> FindObjects(string[] cmds)
        {
            List <string> returnData = new List <string>();

            foreach (string obj in cmds)
            {
                Safe.AddNoBlanks(returnData, MatchSynonym.ToObjects(obj));
            }

            return(returnData.Distinct().ToList());
        }
示例#2
0
 public static void Process(string cmd)
 {
     doOther = true;
     FrameBuffer.ClearType();
     cmd = MatchSynonym.ToSinglesCommands(cmd);
     ProcessMove(cmd);
     //DeBugging.Print(cmd);
     if (doOther)
     {
         ProcessOther(cmd);
     }
 }
        static public List <string> FindActions(string[] cmds)
        {
            List <string> returnData = new List <string>();


            foreach (string Constants in cmds)
            {
                Safe.AddNoBlanks(returnData, MatchSynonym.ToConstants(Constants));
            }

            foreach (string actions in cmds)
            {
                Safe.AddNoBlanks(returnData, MatchSynonym.ToActions(actions));
            }

            return(returnData.Distinct().ToList());
        }